[Intel-wired-lan] [PATCH S58 11/13] ice: fix clang warning regarding deadcode.DeadStores

Brelinski, TonyX tonyx.brelinski at intel.com
Thu Apr 8 22:30:57 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Wednesday, March 31, 2021 2:17 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S58 11/13] ice: fix clang warning regarding
> deadcode.DeadStores
> 
> From: Paul M Stillwell Jr <paul.m.stillwell.jr at intel.com>
> 
> clang generates deadcode.DeadStores warnings when a variable is used to
> read a value, but then that value isn't used later in the code. Fix this warning.
> 
> Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_ethtool.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> A Contingent Worker at Intel




More information about the Intel-wired-lan mailing list