diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-10-08 21:29:00 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-09 07:49:03 -0700 |
commit | c3225164cf60ccecce2459dcb5813dd798233f2d (patch) | |
tree | 07f4a8839d6826e0fd886946c6c9c6886b0eeaa3 /include | |
parent | 45ae74f56162e7a017c3a4e130cf1bcd8d2d17cc (diff) |
net/inetdevice: inet_ifa_match can be boolean
This patch makes inet_ifa_match return bool due to this
particular function only using either one or zero as its return
value.
No functional change.
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/inetdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index a4328cea376a..3b0999e0260f 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -171,7 +171,7 @@ __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst, __be32 local, int scope); struct in_ifaddr *inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask); -static __inline__ int inet_ifa_match(__be32 addr, struct in_ifaddr *ifa) +static __inline__ bool inet_ifa_match(__be32 addr, struct in_ifaddr *ifa) { return !((addr^ifa->ifa_address)&ifa->ifa_mask); } |