Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305621 > unrolled thread
| Started by | Alexander Kuleshov <kuleshovmail@gmail.com> |
|---|---|
| First post | 2016-01-10 16:40 +0100 |
| Last post | 2016-01-11 06:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net/rtnetlink: remove unused sz_idx variable Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-01-10 16:40 +0100
Re: [PATCH] net/rtnetlink: remove unused sz_idx variable David Miller <davem@davemloft.net> - 2016-01-11 06:30 +0100
| From | Alexander Kuleshov <kuleshovmail@gmail.com> |
|---|---|
| Date | 2016-01-10 16:40 +0100 |
| Subject | [PATCH] net/rtnetlink: remove unused sz_idx variable |
| Message-ID | <qPqg2-62t-9@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-01-11 06:30 +0100 |
| Message-ID | <qPDdh-6iW-29@gated-at.bofh.it> |
| In reply to | #1305621 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web