diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-12-01 15:07:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-06 15:59:09 -0500 |
commit | ae9c416d686db74f67d73c1bebf1e3a7e8b3c5b5 (patch) | |
tree | e0bc7c093f164fa4b07b16fa411106b31dd9b07e /net/ipv4 | |
parent | 6464281161e46254ac39505ad41d21dbe7d1738f (diff) |
net: arp: use assignment
Only when dont_send is 0, arp_filter() is consulted, so we can simply
assign the return value of arp_filter() to dont_send instead.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 7833f17b648..10af759f263 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -883,7 +883,7 @@ static int arp_process(struct sk_buff *skb) | |||
883 | 883 | ||
884 | dont_send = arp_ignore(in_dev, sip, tip); | 884 | dont_send = arp_ignore(in_dev, sip, tip); |
885 | if (!dont_send && IN_DEV_ARPFILTER(in_dev)) | 885 | if (!dont_send && IN_DEV_ARPFILTER(in_dev)) |
886 | dont_send |= arp_filter(sip, tip, dev); | 886 | dont_send = arp_filter(sip, tip, dev); |
887 | if (!dont_send) { | 887 | if (!dont_send) { |
888 | n = neigh_event_ns(&arp_tbl, sha, &sip, dev); | 888 | n = neigh_event_ns(&arp_tbl, sha, &sip, dev); |
889 | if (n) { | 889 | if (n) { |