public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH next] batman-adv: remove parenthesis from return statements
@ 2013-11-07  7:02 Antonio Quartulli
  2013-11-13  6:55 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2013-11-07  7:02 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Antonio Quartulli

Remove parenthesis around return expression as suggested by
checkpatch.

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
---
 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 6c8c393..1ef2f79 100644
--- a/distributed-arp-table.c
+++ b/distributed-arp-table.c
@@ -141,7 +141,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 c5d6eb2..1403f52 100644
--- a/main.h
+++ b/main.h
@@ -267,7 +267,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 8ab1434..8c1de1b 100644
--- a/originator.c
+++ b/originator.c
@@ -41,7 +41,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 4add57d..4be5ee1 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -51,7 +51,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;
 }
 
 /**
-- 
1.8.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-13  6:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07  7:02 [B.A.T.M.A.N.] [PATCH next] batman-adv: remove parenthesis from return statements Antonio Quartulli
2013-11-13  6:55 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox