summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-05-18 05:57:13 +0200
committerDavid S. Miller <davem@davemloft.net>2012-05-18 01:40:27 -0400
commitcbc264cacd08e51fd4a64b5d5b1ba48f523990d1 (patch)
treef51584e8a78fad165debfe1e0d01715d9f493f3b /include/net
parent28e85100ae0fd814db723aeaaa785270bf4d600d (diff)
ip_frag: struct inet_frags match() method returns a bool
- match() method returns a boolean - return (A && B && C && D) -> return A && B && C && D - fix indentation Signed-off-by: Eric Dumazet <edumazet@google.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/inet_frag.h3
-rw-r--r--include/net/ipv6.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h
index 16ff29a7bb3..2431cf83aec 100644
--- a/include/net/inet_frag.h
+++ b/include/net/inet_frag.h
@@ -46,8 +46,7 @@ struct inet_frags {
void *arg);
void (*destructor)(struct inet_frag_queue *);
void (*skb_free)(struct sk_buff *);
- int (*match)(struct inet_frag_queue *q,
- void *arg);
+ bool (*match)(struct inet_frag_queue *q, void *arg);
void (*frag_expire)(unsigned long data);
};
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 4332e9aad85..5f65e7c4526 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -387,7 +387,7 @@ struct ip6_create_arg {
};
void ip6_frag_init(struct inet_frag_queue *q, void *a);
-int ip6_frag_match(struct inet_frag_queue *q, void *a);
+bool ip6_frag_match(struct inet_frag_queue *q, void *a);
static inline int ipv6_addr_any(const struct in6_addr *a)
{