]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: apex: Prefer using the BIT macro
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Thu, 28 Mar 2019 14:34:24 +0000 (20:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:15:55 +0000 (17:15 +0100)
commitce4aa8dc8d70ba16652199f3c5c5bb22e5b46d40
treeee797b284fb8a8bfe5d5174a97f47f9a2ea156d7
parente5e9a29ba1776e813b51607747adcc5b7f305a71
staging: gasket: apex: Prefer using the BIT macro

Challenge suggested by coccinelle.

Replace bit shifting on 1 with the BIT(x) macro.
Coccinelle script:

@@
constant c;
@@

-(1 << c)
+BIT(c)

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/apex_driver.c