lkml.org 
[lkml]   [2018]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] bnx2: remove redundant initializations of pointers txr and rxr
From
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.

\
 
 \ /
  Last update: 2018-01-23 17:18    [W:0.060 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site