diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-07 12:39:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-08 00:48:32 +0300 |
commit | 7b3ae17f0f681027a5de532c6a94d99334d97633 (patch) | |
tree | a568caf869bdb34d7d15260ce7ddc58dc0b4034d /drivers/net/ethernet | |
parent | 33b32a2984269706449ff4702682cac2dda01c7e (diff) | |
download | linux-7b3ae17f0f681027a5de532c6a94d99334d97633.tar.xz |
xircom: remove redundant error check on variable err
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/xircom/xirc2ps_cs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c index 3e337142b516..2049d76a0e68 100644 --- a/drivers/net/ethernet/xircom/xirc2ps_cs.c +++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c @@ -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 |