diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-01-10 18:26:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-11 08:22:20 +0300 |
commit | 617cfc753049a4e1e161ae5e5e00e92d56be2b90 (patch) | |
tree | 869b787244dc529558101a5bcdfbb2068a717967 /net | |
parent | 713d40248bde50fba40c5bf1b5dde6d5df02cfd0 (diff) | |
download | linux-617cfc753049a4e1e161ae5e5e00e92d56be2b90.tar.xz |
net/rtnetlink: remove unused sz_idx variable
The sz_idx variable is defined in the rtnetlink_rcv_msg(), but
not used anywhere. Let's remove it.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index baf49cb2f23d..d735e854f916 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3351,7 +3351,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) { struct net *net = sock_net(skb->sk); rtnl_doit_func doit; - int sz_idx, kind; + int kind; int family; int type; int err; @@ -3367,7 +3367,6 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) return 0; family = ((struct rtgenmsg *)nlmsg_data(nlh))->rtgen_family; - sz_idx = type>>2; kind = type&3; if (kind != 2 && !netlink_net_capable(skb, CAP_NET_ADMIN)) |