projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba57b4d
)
ipv4: Make ip_rcv_options() return bool.
author
David S. Miller
<davem@davemloft.net>
Thu, 8 Mar 2012 01:48:08 +0000
(20:48 -0500)
committer
David S. Miller
<davem@davemloft.net>
Fri, 9 Mar 2012 22:34:50 +0000
(14:34 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_input.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ip_input.c
b/net/ipv4/ip_input.c
index
70afe5b
..
bdaa2c5
100644
(file)
--- 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)