staging: rdma: hfi1: Prefer using BIT Macro
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 16 Oct 2015 16:39:08 +0000 (22:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:02:55 +0000 (23:02 -0700)
commitd32cf44a62716d4fa9e9d8a5d7201a89d936fe5e
tree86f82e7ae89f1bc9b9be5d7e7c7ec6a30d15087e
parent0bfe513cac8cf0655489e0e6dd5e7dd3cb2b5927
staging: rdma: hfi1: Prefer using BIT Macro

Replace bit shifting on 1 with the BIT(x) Macro

The semantic patch used to find this is:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/file_ops.c