]> git.hungrycats.org Git - linux/commitdiff
[NET]: Remove useless variable in rtnetlink_rcv_msg
authorPatrick McHardy <kaber@trash.net>
Wed, 28 Jul 2004 11:49:15 +0000 (04:49 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 28 Jul 2004 11:49:15 +0000 (04:49 -0700)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@redhat.com>
net/core/rtnetlink.c

index e2c751ed332ea90cdaac8199afe29de89da570b5..e0b5e89c863de55266c6674143cefa89880d02de 100644 (file)
@@ -335,7 +335,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
        struct rtnetlink_link *link_tab;
        struct rtattr   *rta[RTATTR_MAX];
 
-       int exclusive = 0;
        int sz_idx, kind;
        int min_len;
        int family;
@@ -402,9 +401,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
                return -1;
        }
 
-       if (kind != 2) 
-               exclusive = 1;
-
        memset(&rta, 0, sizeof(rta));
 
        min_len = rtm_min[sz_idx];