staging: lustre: remove extra parentheses around left bit shift operations

Removes extra parentheses around bitwise left shift operations.
The cases handled here are when resultant values are assigned to
variables. The issue was detected and resolved using the following
coccinelle script:

@@
expression e, e1;
constant c;
@@

e =
-(e1
+e1
<<
-c);
+c;

@@
identifier i;
constant c;
type t;
expression e;
@@

t i =
-(e
+e
<<
-c);
+c;

@@
expression e, e1;
identifier f;
constant c;
@@

e1 = f(...,
-(e
+e
<<
-c)
+c
,...);

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Aya Mahfouz 2015-03-04 08:18:19 +02:00 committed by Greg Kroah-Hartman
parent 9ea755f3e8
commit e21bf3388b
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ static int typed_conns = 1;
module_param(typed_conns, int, 0444); module_param(typed_conns, int, 0444);
MODULE_PARM_DESC(typed_conns, "use different sockets for bulk"); MODULE_PARM_DESC(typed_conns, "use different sockets for bulk");
static int min_bulk = (1<<10); static int min_bulk = 1<<10;
module_param(min_bulk, int, 0644); module_param(min_bulk, int, 0644);
MODULE_PARM_DESC(min_bulk, "smallest 'large' message"); MODULE_PARM_DESC(min_bulk, "smallest 'large' message");
@ -122,7 +122,7 @@ static int nonblk_zcack = 1;
module_param(nonblk_zcack, int, 0644); module_param(nonblk_zcack, int, 0644);
MODULE_PARM_DESC(nonblk_zcack, "always send ZC-ACK on non-blocking connection"); MODULE_PARM_DESC(nonblk_zcack, "always send ZC-ACK on non-blocking connection");
static unsigned int zc_min_payload = (16 << 10); static unsigned int zc_min_payload = 16 << 10;
module_param(zc_min_payload, int, 0644); module_param(zc_min_payload, int, 0644);
MODULE_PARM_DESC(zc_min_payload, "minimum payload size to zero copy"); MODULE_PARM_DESC(zc_min_payload, "minimum payload size to zero copy");
@ -182,7 +182,7 @@ int ksocknal_tunables_init(void)
#endif #endif
if (*ksocknal_tunables.ksnd_zc_min_payload < (2 << 10)) if (*ksocknal_tunables.ksnd_zc_min_payload < (2 << 10))
*ksocknal_tunables.ksnd_zc_min_payload = (2 << 10); *ksocknal_tunables.ksnd_zc_min_payload = 2 << 10;
return 0; return 0;
}; };