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

2017-09-14 Thread David Miller
From: Colin King Date: Thu, 14 Sep 2017 17:01:25 +0100 > From: Colin Ian King > > 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

[PATCH] tg3: clean up redundant initialization of tnapi

2017-09-14 Thread Colin King
From: Colin Ian King 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