]> git.baikalelectronics.ru Git - kernel.git/commitdiff
[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 06eccca8cb5d305e0a6d2750e724cc65f0666235..4756d5857abfb9010a55610423f967d129ae45f4 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;