]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: clean up redundant initialization of tnapi
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Sep 2017 16:01:25 +0000 (17:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Sep 2017 17:00:29 +0000 (10:00 -0700)
commit3d901a8cf8c5027552061d5ca8247adf1fddad0e
treee9647e6956452d8ac3054b6e6d788a2acca4c5a6
parent6267770bd0a8f4dadd495fe75a943c50a9c40a3f
tg3: clean up redundant initialization of tnapi

tnapi is being initialized and then immediately updated and
hence the initialiation is redundant.  Clean up the warning
by moving the declaration and initialization to the inside
of the for-loop.

Cleans up clang scan-build warning:
warning: Value stored to 'tnapi' 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/tg3.c