Re: [PATCH] tg3: clean up redundant initialization of tnapi

From: David Miller
Date: Thu Sep 14 2017 - 13:00:46 EST

From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Thu, 14 Sep 2017 17:01:25 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxx>