From: Jozsef Kadlecsik Date: Thu, 27 Jan 2011 21:22:26 +0000 (+0100) Subject: Fix sparse warning about shadowed definition X-Git-Tag: v6.0~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb74c577311b2bda5938c5979800b02322852793;p=ipset Fix sparse warning about shadowed definition --- diff --git a/kernel/ip_set_core.c b/kernel/ip_set_core.c index bef659a..dddc916 100644 --- a/kernel/ip_set_core.c +++ b/kernel/ip_set_core.c @@ -984,7 +984,7 @@ ip_set_dump_start(struct sk_buff *skb, struct netlink_callback *cb) if (cb->args[0] == DUMP_INIT) { ret = dump_init(cb); if (ret < 0) { - struct nlmsghdr *nlh = nlmsg_hdr(cb->skb); + nlh = nlmsg_hdr(cb->skb); /* We have to create and send the error message * manually :-( */ if (nlh->nlmsg_flags & NLM_F_ACK)