[RTNETLINK]: Fix warning for !CONFIG_KMOD
authorThomas Graf <tgraf@suug.ch>
Tue, 31 Jul 2007 21:13:50 +0000 (14:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jul 2007 21:13:50 +0000 (14:13 -0700)
replay label is unused otherwise.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c

index 06eccca..4756d58 100644 (file)
@@ -952,7 +952,9 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
        struct nlattr *linkinfo[IFLA_INFO_MAX+1];
        int err;
 
+#ifdef CONFIG_KMOD
 replay:
+#endif
        err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy);
        if (err < 0)
                return err;