diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-07 11:39:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-07 23:48:32 +0200 |
commit | 7b3ae17f0f681027a5de532c6a94d99334d97633 (patch) | |
tree | a568caf869bdb34d7d15260ce7ddc58dc0b4034d /drivers/net/ethernet/xircom | |
parent | Merge tag 'linux-can-next-for-5.13-20210407' of git://git.kernel.org/pub/scm/... (diff) | |
download | linux-7b3ae17f0f681027a5de532c6a94d99334d97633.tar.xz linux-7b3ae17f0f681027a5de532c6a94d99334d97633.zip |
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/xircom')
-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 |