RE: [PATCH] net: ethernet: gianfar_ethtool: remove redundant variable last_rule_idx
From: Claudiu Manoil
Date: Wed Jul 04 2018 - 04:44:00 EST
>-----Original Message-----
>From: Colin King [mailto:colin.king@xxxxxxxxxxxxx]
>Sent: Wednesday, July 4, 2018 10:55 AM
>To: Claudiu Manoil <claudiu.manoil@xxxxxxx>; David S . Miller
><davem@xxxxxxxxxxxxx>; netdev@xxxxxxxxxxxxxxx
>Cc: kernel-janitors@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
>Subject: [PATCH] net: ethernet: gianfar_ethtool: remove redundant variable
>last_rule_idx
>
>From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
>Variable last_rule_idx is being assigned but is never used hence it is
>redundant and can be removed.
>
>Cleans up clang warning:
>warning: variable 'last_rule_idx' set but not used [-Wunused-but-set-variable]
>
>Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Acked-by: Claudiu Manoil <claudiu.manoil@xxxxxxx>