diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-08 02:48:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-09 23:34:50 +0100 |
commit | 6a91395f20119d696330e2604451614a64369d1b (patch) | |
tree | 723ce2b36156eb078583f1892420b84eb338ed2f /net/ipv4/ip_input.c | |
parent | ipv4: Make ip_call_ra_chain() return bool. (diff) | |
download | linux-6a91395f20119d696330e2604451614a64369d1b.tar.xz linux-6a91395f20119d696330e2604451614a64369d1b.zip |
ipv4: Make ip_rcv_options() return bool.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 70afe5bf1945..bdaa2c5c28e4 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c @@ -265,7 +265,7 @@ int ip_local_deliver(struct sk_buff *skb) ip_local_deliver_finish); } -static inline int ip_rcv_options(struct sk_buff *skb) +static inline bool ip_rcv_options(struct sk_buff *skb) { struct ip_options *opt; const struct iphdr *iph; @@ -309,9 +309,9 @@ static inline int ip_rcv_options(struct sk_buff *skb) goto drop; } - return 0; + return false; drop: - return -1; + return true; } static int ip_rcv_finish(struct sk_buff *skb) |