OSDN Git Service

tg3: Remove redundant assignments
authorluo penghao <luo.penghao@zte.com.cn>
Thu, 4 Nov 2021 06:21:38 +0000 (06:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 10:14:38 +0000 (10:14 +0000)
commit0c500ef5d3395b68f615486c90aaf28868e0032c
tree050888065a810fc1225a1d6c991186f8e6f05c86
parentaf1877b6cad16bdd8d8d93ca1c7b37e8f21ef4e3
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>
drivers/net/ethernet/broadcom/tg3.c