OSDN Git Service

staging: remove unneeded parentheses around the right hand side of an assignment
authorJiayi Ye <yejiayily@gmail.com>
Sat, 25 Oct 2014 02:58:28 +0000 (10:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:06 +0000 (10:33 +0800)
commit1d06bb4e9df30162d8690a26792611a141676279
tree95b2d79fa25de4ceaac0af530173241450a35852
parent3e3f878f4d38c0724e51e192f232e1726daffd89
staging: remove unneeded parentheses around the right hand side of an assignment

In assignments such as value = (FLASH_CMD_STATUS_REG_READ << 24);, parentheses
are not needed. The Coccinelle semantic patch was used to find cases.

@r@
identifier x;
expression e1, e2;
@@

- x = (e1 << e2);
+ x = e1 << e2;

Signed-off-by: Jiayi Ye <yejiayily@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
drivers/staging/lustre/lustre/libcfs/debug.c
drivers/staging/lustre/lustre/llite/rw.c
drivers/staging/media/davinci_vpfe/dm365_resizer.c
drivers/staging/media/omap24xx/omap24xxcam.c
drivers/staging/ozwpan/ozhcd.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8723au/hal/hal_com.c
drivers/staging/vt6655/dpc.c
drivers/staging/xgifb/vb_setmode.c