Staging: lustre: lnet: Remove unnecessary parentheses on return
authorMiguel Bernabeu Diaz <miguelbernadi@gmail.com>
Wed, 5 Aug 2015 21:49:57 +0000 (23:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:12:40 +0000 (15:12 -0700)
Removed three instances of parentheses in return calls that are
unnecessary and do not contribute to readability.

Signed-off-by: Miguel Bernabeu Diaz <miguelbernadi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h

index 92fbd6d3c7a9fafecd5477bbb492d72355225f45..2991be85d8b31ac39e7b7a8f70b86f587e39ccd2 100644 (file)
@@ -721,14 +721,14 @@ kiblnd_nid2peerlist(lnet_nid_t nid)
        unsigned int hash =
                ((unsigned int)nid) % kiblnd_data.kib_peer_hash_size;
 
-       return (&kiblnd_data.kib_peers[hash]);
+       return &kiblnd_data.kib_peers[hash];
 }
 
 static inline int
 kiblnd_peer_active(kib_peer_t *peer)
 {
        /* Am I in the peer hash table? */
-       return (!list_empty(&peer->ibp_list));
+       return !list_empty(&peer->ibp_list);
 }
 
 static inline kib_conn_t *
@@ -833,7 +833,7 @@ kiblnd_wreqid2ptr(__u64 wreqid)
 static inline int
 kiblnd_wreqid2type(__u64 wreqid)
 {
-       return (wreqid & IBLND_WID_MASK);
+       return wreqid & IBLND_WID_MASK;
 }
 
 static inline void