[NET]: sparse warning fixes
Fix a bunch of sparse warnings. Mostly about 0 used as NULL pointer, and shadowed variable declarations. One notable case was that hash size should have been unsigned. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
de83c058af
commit
cfcabdcc2d
@@ -822,8 +822,6 @@ static int aarp_rcv(struct sk_buff *skb, struct net_device *dev,
|
||||
* address. So as a precaution flush any
|
||||
* entries we have for this address.
|
||||
*/
|
||||
struct aarp_entry *a;
|
||||
|
||||
a = __aarp_find_entry(resolved[sa.s_node %
|
||||
(AARP_HASH_SIZE - 1)],
|
||||
skb->dev, &sa);
|
||||
|
Reference in New Issue
Block a user