aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-03-07 20:48:08 -0500
committerDavid S. Miller <davem@davemloft.net>2012-03-09 17:34:50 -0500
commit6a91395f20119d696330e2604451614a64369d1b (patch)
tree723ce2b36156eb078583f1892420b84eb338ed2f /net/ipv4/ip_input.c
parentba57b4db2624793c6eb8f2c051c9f7b8a6e7b6a6 (diff)
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.c6
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)
265 ip_local_deliver_finish); 265 ip_local_deliver_finish);
266} 266}
267 267
268static inline int ip_rcv_options(struct sk_buff *skb) 268static inline bool ip_rcv_options(struct sk_buff *skb)
269{ 269{
270 struct ip_options *opt; 270 struct ip_options *opt;
271 const struct iphdr *iph; 271 const struct iphdr *iph;
@@ -309,9 +309,9 @@ static inline int ip_rcv_options(struct sk_buff *skb)
309 goto drop; 309 goto drop;
310 } 310 }
311 311
312 return 0; 312 return false;
313drop: 313drop:
314 return -1; 314 return true;
315} 315}
316 316
317static int ip_rcv_finish(struct sk_buff *skb) 317static int ip_rcv_finish(struct sk_buff *skb)