Messages in this thread | | | Date | Tue, 23 Jan 2018 11:17:25 -0500 (EST) | Subject | Re: [PATCH] bnx2: remove redundant initializations of pointers txr and rxr | From | David Miller <> |
| |
From: Colin King <colin.king@canonical.com> Date: Tue, 23 Jan 2018 09:44:08 +0000
> From: Colin Ian King <colin.king@canonical.com> > > 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>
Applied, thanks Colin.
| |