Skip to content

Commit

Permalink
net/rtnetlink: remove unused sz_idx variable
Browse files Browse the repository at this point in the history
The sz_idx variable is defined in the rtnetlink_rcv_msg(), but
not used anywhere. Let's remove it.

Signed-off-by: Alexander Kuleshov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
0xAX authored and davem330 committed Jan 11, 2016
1 parent 713d402 commit 617cfc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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))
Expand Down

0 comments on commit 617cfc7

Please sign in to comment.