qlogic: netxen: remove various redundant variables
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Jul 2018 11:45:53 +0000 (12:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 11:03:29 +0000 (20:03 +0900)
commit8e15268e3d931944675e6a7ed69c1cda60faa718
tree19e0486a5d55e7db5ad3c32d370b3d08b98e95b0
parent2e41c380d1078a8c3b7707bf595c834817bf9ffc
qlogic: netxen: remove various redundant variables

Variables consumer, cmd_desc, end_cnt and no_of_desc are being assigned
but are never used hence they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'consumer' set but not used [-Wunused-but-set-variable]
warning: variable 'cmd_desc' set but not used [-Wunused-but-set-variable]
warning: variable 'end_cnt' set but not used [-Wunused-but-set-variable]
warning: variable 'no_of_desc' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c