Commit 16ca5129 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NET]: Remove useless variable in rtnetlink_rcv_msg

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent c2c00073
...@@ -335,7 +335,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp) ...@@ -335,7 +335,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
struct rtnetlink_link *link_tab; struct rtnetlink_link *link_tab;
struct rtattr *rta[RTATTR_MAX]; struct rtattr *rta[RTATTR_MAX];
int exclusive = 0;
int sz_idx, kind; int sz_idx, kind;
int min_len; int min_len;
int family; int family;
...@@ -402,9 +401,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp) ...@@ -402,9 +401,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
return -1; return -1;
} }
if (kind != 2)
exclusive = 1;
memset(&rta, 0, sizeof(rta)); memset(&rta, 0, sizeof(rta));
min_len = rtm_min[sz_idx]; min_len = rtm_min[sz_idx];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment