Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1732464

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

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] tg3: clean up redundant initialization of tnapi
Date 2017-09-14 19:10 +0200
Message-ID <upFOh-7RX-7@gated-at.bofh.it> (permalink)
References <upESf-7ea-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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

Applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] tg3: clean up redundant initialization of tnapi Colin King <colin.king@canonical.com> - 2017-09-14 18:10 +0200
  Re: [PATCH] tg3: clean up redundant initialization of tnapi David Miller <davem@davemloft.net> - 2017-09-14 19:10 +0200

csiph-web