summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-07-31 14:13:50 -0700
committerDavid S. Miller <davem@davemloft.net>2007-07-31 14:13:50 -0700
commit8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0 (patch)
tree0473aee463a67a7cae6f56546c9fa040312ff546 /net/core
parent376407039c26caacc3e433437d25516ba8f3adc9 (diff)
downloadlinux-8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0.tar.gz
linux-8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0.tar.bz2
linux-8072f085d79a0a73cc5a0333ffa7f0c5d35f76e0.zip
[RTNETLINK]: Fix warning for !CONFIG_KMOD
replay label is unused otherwise. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 2 insertions, 0 deletions
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;