mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 04:12:08 -05:00
Staging: irda: Remove parentheses on the right of assignment
Parentheses are not needed on the right hand side of assignment statement in most cases. Done using the following semantic patch by coccinelle. @@ identifier E,F,G,f; expression e,r; @@ ( E = (G == F); | E = (e == r); | E = -( ... -) ; ) Signed-off-by: Srishti Sharma <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
1521968f3c
commit
7f1a9c61d6
2 changed files with 3 additions and 3 deletions
|
|
@ -605,7 +605,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)
|
|||
if (mcs->new_speed <= 115200) {
|
||||
rval &= ~MCS_FIR;
|
||||
|
||||
rst = (mcs->speed > 115200);
|
||||
rst = mcs->speed > 115200;
|
||||
if (rst)
|
||||
mcs_set_reg(mcs, MCS_MINRXPW_REG, 0);
|
||||
|
||||
|
|
@ -619,7 +619,7 @@ static int mcs_speed_change(struct mcs_cb *mcs)
|
|||
} else {
|
||||
rval |= MCS_FIR;
|
||||
|
||||
rst = (mcs->speed != 4000000);
|
||||
rst = mcs->speed != 4000000;
|
||||
if (rst)
|
||||
mcs_set_reg(mcs, MCS_MINRXPW_REG, 5);
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ static __u32 hash( const char* name)
|
|||
|
||||
while(*name) {
|
||||
h = (h<<4) + *name++;
|
||||
g = (h & 0xf0000000);
|
||||
g = h & 0xf0000000;
|
||||
if (g)
|
||||
h ^=g>>24;
|
||||
h &=~g;
|
||||
|
|
|
|||
Loading…
Reference in a new issue