net: libwx: Fix dead code for duplicate check
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 16 Nov 2022 01:58:35 +0000 (09:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2022 10:53:13 +0000 (10:53 +0000)
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>
drivers/net/ethernet/wangxun/libwx/wx_hw.c

index 1eb7388..c57dc32 100644 (file)
@@ -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) {