Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: libwx: Fix dead code for duplicate check

Fix duplicate check on polling timeout.

Fixes: 1efa9bfe58c5 ("net: libwx: Implement interaction with firmware")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jiawen Wu and committed by
David S. Miller
0b6ffefb 0dc33c65

-2
-2
drivers/net/ethernet/wangxun/libwx/wx_hw.c
··· 203 203 204 204 status = read_poll_timeout(rd32, hicr, hicr & WX_MNG_MBOX_CTL_FWRDY, 1000, 205 205 timeout * 1000, false, wxhw, WX_MNG_MBOX_CTL); 206 - if (status) 207 - goto rel_out; 208 206 209 207 /* Check command completion */ 210 208 if (status) {