Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Kuleshov and committed by
David S. Miller
617cfc75 713d4024

+1 -2
+1 -2
net/core/rtnetlink.c
··· 3351 3351 { 3352 3352 struct net *net = sock_net(skb->sk); 3353 3353 rtnl_doit_func doit; 3354 - int sz_idx, kind; 3354 + int kind; 3355 3355 int family; 3356 3356 int type; 3357 3357 int err; ··· 3367 3367 return 0; 3368 3368 3369 3369 family = ((struct rtgenmsg *)nlmsg_data(nlh))->rtgen_family; 3370 - sz_idx = type>>2; 3371 3370 kind = type&3; 3372 3371 3373 3372 if (kind != 2 && !netlink_net_capable(skb, CAP_NET_ADMIN))