xircom: remove redundant error check on variable err
authorColin Ian King <colin.king@canonical.com>
Wed, 7 Apr 2021 09:39:22 +0000 (10:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:48:32 +0000 (14:48 -0700)
The error check on err is always false as err is always 0 at the
port_found label. The code is redundant and can be removed.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xircom/xirc2ps_cs.c

index 3e33714..2049d76 100644 (file)
@@ -798,8 +798,6 @@ xirc2ps_config(struct pcmcia_device * link)
            goto config_error;
     }
   port_found:
-    if (err)
-        goto config_error;
 
     /****************
      * Now allocate an interrupt line. Note that this does not