summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-04 06:21:38 +0000
committerDavid S. Miller <davem@davemloft.net>2021-11-05 10:14:38 +0000
commit0c500ef5d3395b68f615486c90aaf28868e0032c (patch)
tree050888065a810fc1225a1d6c991186f8e6f05c86 /drivers/net
parentaf1877b6cad16bdd8d8d93ca1c7b37e8f21ef4e3 (diff)
tg3: Remove redundant assignments
The assignment of err will be overwritten next, so this statement should be deleted. The clang_analyzer complains as follows: drivers/net/ethernet/broadcom/tg3.c:5506:2: warning: Value stored to 'expected_sg_dig_ctrl' is never read Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: luo penghao <luo.penghao@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
index b1328c5524b5..85ca3909859d 100644
--- a/drivers/net/ethernet/broadcom/tg3.c
+++ b/drivers/net/ethernet/broadcom/tg3.c
@@ -5503,7 +5503,6 @@ static bool tg3_setup_fiber_hw_autoneg(struct tg3 *tp, u32 mac_status)
int workaround, port_a;
serdes_cfg = 0;
- expected_sg_dig_ctrl = 0;
workaround = 0;
port_a = 1;
current_link_up = false;