summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/hal/usb_halinit.c
diff options
context:
space:
mode:
authorJiayi Ye <yejiayily@gmail.com>2014-10-25 10:58:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-27 10:33:06 +0800
commit1d06bb4e9df30162d8690a26792611a141676279 (patch)
tree95b2d79fa25de4ceaac0af530173241450a35852 /drivers/staging/rtl8188eu/hal/usb_halinit.c
parent3e3f878f4d38c0724e51e192f232e1726daffd89 (diff)
downloadop-kernel-dev-1d06bb4e9df30162d8690a26792611a141676279.zip
op-kernel-dev-1d06bb4e9df30162d8690a26792611a141676279.tar.gz
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>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal/usb_halinit.c')
-rw-r--r--drivers/staging/rtl8188eu/hal/usb_halinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index caf2ca3..ac6abac 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1673,7 +1673,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
pRegToSet = RegToSet_Normal; /* 0xb972a841; */
FactorToSet = *((u8 *)val);
if (FactorToSet <= 3) {
- FactorToSet = (1<<(FactorToSet + 2));
+ FactorToSet = 1 << (FactorToSet + 2);
if (FactorToSet > 0xf)
FactorToSet = 0xf;
OpenPOWER on IntegriCloud