summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorMarkus Pargmann2014-12-26 12:41:39 +0100
committerAntonio Quartulli2015-06-03 15:57:24 +0200
commitf2d5cf2add74ac066572b5215ba8a33dfcf0b85c (patch)
treecaed0dbba641af67df79d7c493337fb5b3a385c7 /net/batman-adv/main.h
parentbatman-adv: main, Convert is_my_mac() to bool (diff)
downloadkernel-qcow2-linux-f2d5cf2add74ac066572b5215ba8a33dfcf0b85c.tar.gz
kernel-qcow2-linux-f2d5cf2add74ac066572b5215ba8a33dfcf0b85c.tar.xz
kernel-qcow2-linux-f2d5cf2add74ac066572b5215ba8a33dfcf0b85c.zip
batman-adv: main, batadv_compare_eth return bool
Declare the returntype of batadv_compare_eth as bool. The function called inside this helper function (ether_addr_equal_unaligned) also uses bool as return value, so there is no need to return int. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 96876d29f952..af0a3361d4b2 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -279,7 +279,7 @@ static inline void _batadv_dbg(int type __always_unused,
*
* note: can't use ether_addr_equal() as it requires aligned memory
*/
-static inline int batadv_compare_eth(const void *data1, const void *data2)
+static inline bool batadv_compare_eth(const void *data1, const void *data2)
{
return ether_addr_equal_unaligned(data1, data2);
}