]> granicus.if.org Git - ipset/commitdiff
Fix sparse warning about shadowed definition
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 27 Jan 2011 21:22:26 +0000 (22:22 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 27 Jan 2011 21:22:26 +0000 (22:22 +0100)
kernel/ip_set_core.c

index bef659ab3d5f4842bc7d9d09e2f344f488d5c0eb..dddc91667eadf3c19bac5e42a40e50efc3df5c73 100644 (file)
@@ -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)