From: Thomas Graf Date: Tue, 31 Jul 2007 21:13:50 +0000 (-0700) Subject: [RTNETLINK]: Fix warning for !CONFIG_KMOD X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0;p=openwrt%2Fstaging%2Fblogic.git [RTNETLINK]: Fix warning for !CONFIG_KMOD replay label is unused otherwise. Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 06eccca8cb5d..4756d5857abf 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -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;