diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-04-07 11:51:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-07 17:29:41 -0400 |
commit | b111e4e1112316e800dd1f1debdf017d2cf940b2 (patch) | |
tree | b0776615a3a23c05801434e0cdc19922194693bf /net/core | |
parent | e0e8db2f89bac4529fa12dde2595d6295e313952 (diff) | |
download | linux-b111e4e1112316e800dd1f1debdf017d2cf940b2.tar.gz linux-b111e4e1112316e800dd1f1debdf017d2cf940b2.tar.bz2 linux-b111e4e1112316e800dd1f1debdf017d2cf940b2.zip |
netns: minor cleanup in rtnl_net_getid()
No need to initialize err, it will be overridden by the value of nlmsg_parse().
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/net_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index e7345d9031df..be28afccfbbb 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -565,8 +565,8 @@ static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh) struct net *net = sock_net(skb->sk); struct nlattr *tb[NETNSA_MAX + 1]; struct sk_buff *msg; - int err = -ENOBUFS; struct net *peer; + int err; err = nlmsg_parse(nlh, sizeof(struct rtgenmsg), tb, NETNSA_MAX, rtnl_net_policy); |