[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170114.120027.401686898931069481.davem@davemloft.net>
Date: Sat, 14 Jan 2017 12:00:27 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mayhs11saini@...il.com
Cc: hariprasad@...lsio.com, tklauser@...tanz.ch,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cxgb4: Remove redundant memset before memcpy
From: Shyam Saini <mayhs11saini@...il.com>
Date: Sat, 14 Jan 2017 06:47:40 +0530
> The region set by the call to memset, immediately overwritten by
> the subsequent call to memcpy and thus makes the memset redundant.
>
> Also remove the memset((&info, 0, sizeof(info)) on line 398 because
> info is memcpy()'ed to before being used in the loop and it isn't
> used outside of the loop.
>
> Signed-off-by: Shyam Saini <mayhs11saini@...il.com>
Applied to net-next, thanks.
Powered by blists - more mailing lists