ipv6: fix array index in ip6_mc_add_src()
authorRongQing.Li <roy.qing.li@gmail.com>
Wed, 4 Apr 2012 16:47:04 +0000 (16:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Apr 2012 04:00:42 +0000 (00:00 -0400)
Convert array index from the loop bound to the loop index.

And remove the void type conversion to ip6_mc_del1_src() return
code, seem it is unnecessary, since ip6_mc_del1_src() does not
use __must_check similar attribute, no compiler will report the
warning when it is removed.

v2: enrich the commit header

Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>


No differences found