bnx2: remove redundant initializations of pointers txr and rxr
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jan 2018 09:44:08 +0000 (09:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jan 2018 16:16:23 +0000 (11:16 -0500)
commit196709f4942dfc70e11088a025f3e14305117393
tree7a70802eaca6ff514fd9685c7e6d8dd3d8481882
parenta9124ec443babc80fc41fc620b60616231e7e893
bnx2: remove redundant initializations of pointers txr and rxr

Pointers txr and rxr are being initialized and a few statements later
are being assigned new values without the original values ever being
read. The initialized values are therefore redundant and can be
removed.

Cleans up clang warnings:
drivers/net/ethernet/broadcom/bnx2.c:5821:28: warning: Value stored to
'txr' during its initialization is never read
drivers/net/ethernet/broadcom/bnx2.c:5822:28: warning: Value stored to
'rxr' during its initialization is never read

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