]> git.baikalelectronics.ru Git - kernel.git/commit
ravb: fix shadowing of symbol 'stats' in ravb_get_ethtool_stats()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 16 Jul 2018 12:19:25 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 05:21:49 +0000 (14:21 +0900)
commitac5c533000c0d941d4101ab1cd221b30da30984a
tree5609ecb093121c86e082a9e95f9cc369671194a3
parent558dbb6d1243b3ba7b29bc599c78a44aef423fb8
ravb: fix shadowing of symbol 'stats' in ravb_get_ethtool_stats()

Inside a loop in ravb_get_ethtool_stats() a variable 'stats' is declared
resulting in the argument also named 'stats' to be shadowed. Fix this
warning by renaming the unused argument 'stats' to 'estats'.

This fixes the sparse warning:

ravb_main.c:1225:36: originally declared here
ravb_main.c:1233:41: warning: symbol 'stats' shadows an earlier one

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c