batman-adv: remove parenthesis from return statements
PATCH 1/1 batman-adv: remove parenthesis from return statements
Remove parenthesis around return expression as suggested by checkpatch.
Signed-off-by Antonio Quartulli <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
Marek Lindner
AppliedQuoted 10 lines · On Thursday 07 November 2013 08:02:07 Antonio Quartulli wrote:
Remove parenthesis around return expression as suggested by checkpatch.
Signed-off-by Antonio Quartulli <[email protected]>--- 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