Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit e6198c4bf6f6ae9cfe8f79a989ebdbf45afc27e2 Author: Antonio Quartulli antonio@meshcoding.com Date: Thu Nov 7 08:02:07 2013 +0100
batman-adv: remove parenthesis from return statements
Remove parenthesis around return expression as suggested by checkpatch.
Signed-off-by: Antonio Quartulli antonio@meshcoding.com Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
e6198c4bf6f6ae9cfe8f79a989ebdbf45afc27e2 distributed-arp-table.c | 2 +- main.h | 2 +- originator.c | 2 +- translation-table.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/distributed-arp-table.c b/distributed-arp-table.c index 209066f..30aa509 100644 --- a/distributed-arp-table.c +++ b/distributed-arp-table.c @@ -136,7 +136,7 @@ static int batadv_compare_dat(const struct hlist_node *node, const void *data2) const void *data1 = container_of(node, struct batadv_dat_entry, hash_entry);
- return (memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0); + return memcmp(data1, data2, sizeof(__be32)) == 0 ? 1 : 0; }
/** diff --git a/main.h b/main.h index 1ab279c..e6f868f 100644 --- a/main.h +++ b/main.h @@ -262,7 +262,7 @@ static inline void batadv_dbg(int type __always_unused, */ static inline int batadv_compare_eth(const void *data1, const void *data2) { - return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); + return memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0; }
/** diff --git a/originator.c b/originator.c index edfb921..0134534 100644 --- a/originator.c +++ b/originator.c @@ -36,7 +36,7 @@ int batadv_compare_orig(const struct hlist_node *node, const void *data2) const void *data1 = container_of(node, struct batadv_orig_node, hash_entry);
- return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); + return memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0; }
/** diff --git a/translation-table.c b/translation-table.c index 5957bad..979d9b9 100644 --- a/translation-table.c +++ b/translation-table.c @@ -46,7 +46,7 @@ static int batadv_compare_tt(const struct hlist_node *node, const void *data2) const void *data1 = container_of(node, struct batadv_tt_common_entry, hash_entry);
- return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0); + return memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0; }
/**