From: Colin Ian King Date: Wed, 7 Apr 2021 09:39:22 +0000 (+0100) Subject: xircom: remove redundant error check on variable err X-Git-Tag: v5.15.73~12067^2~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b3ae17f0f681027a5de532c6a94d99334d97633;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- 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