* [PATCH] net/rtnetlink: remove unused sz_idx variable
@ 2016-01-10 15:26 Alexander Kuleshov
2016-01-11 5:22 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2016-01-10 15:26 UTC (permalink / raw)
To: David S . Miller
Cc: Nicolas Dichtel, Roopa Prabhu, Scott Feldman, Daniel Borkmann,
WANG Cong, Hannes Frederic Sowa, Eran Ben Elisha, netdev,
linux-kernel, Alexander Kuleshov
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>
---
net/core/rtnetlink.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 34ba7a0..e78e531 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -3347,7 +3347,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;
@@ -3363,7 +3363,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))
--
2.6.2.485.g1bc8fea
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/rtnetlink: remove unused sz_idx variable
2016-01-10 15:26 [PATCH] net/rtnetlink: remove unused sz_idx variable Alexander Kuleshov
@ 2016-01-11 5:22 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-01-11 5:22 UTC (permalink / raw)
To: kuleshovmail
Cc: nicolas.dichtel, roopa, sfeldma, daniel, xiyou.wangcong, hannes,
eranbe, netdev, linux-kernel
From: Alexander Kuleshov <kuleshovmail@gmail.com>
Date: Sun, 10 Jan 2016 21:26:57 +0600
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-11 5:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-10 15:26 [PATCH] net/rtnetlink: remove unused sz_idx variable Alexander Kuleshov
2016-01-11 5:22 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).