Skip to contentSkip to conversation

batman-adv: remove parenthesis from return statements

PATCH Applied Antonio Quartulli 2 participants 2 messages Nov 7, 2013 – Nov 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: remove parenthesis from return statements

Remove parenthesis around return expression as suggested by checkpatch.

---
 distributed-arp-table.c | 2 +-
 main.h                  | 2 +-
 originator.c            | 2 +-
 translation-table.c     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
distributed-arp-table.c +1 -1
index 6c8c393..1ef2f79 100644
@@ -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;
 }
 
 /**
main.h +1 -1
index c5d6eb2..1403f52 100644
@@ -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;
 }
 
 /**
originator.c +1 -1
index 8ab1434..8c1de1b 100644
@@ -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;
 }
 
 /**
translation-table.c +1 -1
index 4add57d..4be5ee1 100644
@@ -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;
 }
 
 /**
Signature · 1 line
1.8.4.2
#1 lore raw
Quoted 10 lines · On Thursday 07 November 2013 08:02:07 Antonio Quartulli wrote:

Remove parenthesis around return expression as suggested by checkpatch.

---
 distributed-arp-table.c | 2 +-
 main.h                  | 2 +-
 originator.c            | 2 +-
 translation-table.c     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Applied in revision e6198c4.

Thanks,
Marek