]> git.baikalelectronics.ru Git - kernel.git/commit
netdev_alloc_pcpu_stats: use less common iterator variable
authorJohannes Berg <johannes.berg@intel.com>
Thu, 23 Apr 2015 10:06:30 +0000 (12:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2015 15:38:14 +0000 (11:38 -0400)
commit0e68b259ca019ace9c1985774d4bc5c7d68961b7
tree6cbd780b138adf04c0da03e811d937e6a54f5720
parent00435b01af29a0d1c573af793a370ebce3c282e7
netdev_alloc_pcpu_stats: use less common iterator variable

With the CPU iteration variable called 'i', it's relatively easy
to have variable shadowing which sparse will warn about. Avoid
that by renaming the variable to __cpu which is less likely to
be used in the surrounding context.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h