Commit 0b6ffefb authored by Jiawen Wu's avatar Jiawen Wu Committed by David S. Miller
Browse files

net: libwx: Fix dead code for duplicate check



Fix duplicate check on polling timeout.

Fixes: 1efa9bfe ("net: libwx: Implement interaction with firmware")
Signed-off-by: default avatarJiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0dc33c65
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -203,8 +203,6 @@ int wx_host_interface_command(struct wx_hw *wxhw, u32 *buffer,

	status = read_poll_timeout(rd32, hicr, hicr & WX_MNG_MBOX_CTL_FWRDY, 1000,
				   timeout * 1000, false, wxhw, WX_MNG_MBOX_CTL);
	if (status)
		goto rel_out;

	/* Check command completion */
	if (status) {