All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: lustre: osc: Modify right hand side of an assignment
@ 2016-02-10  6:40 Janani Ravichandran
  2016-02-12  3:28 ` [Outreachy kernel] " Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Janani Ravichandran @ 2016-02-10  6:40 UTC (permalink / raw)
  To: outreachy-kernel

This patch modifies an assignment of the form a = (a <op> b);
as: a <op>= b; where <op> is << or >>.
Coccinelle script used:

@@
identifier i;
expression e;
@@

- i = (i >> e);
+ i >>= e;

@@
identifier i;
expression e;
@@

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

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
---
 drivers/staging/lustre/lustre/osc/osc_request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c
index 3ae00fc..cebc974 100644
--- a/drivers/staging/lustre/lustre/osc/osc_request.c
+++ b/drivers/staging/lustre/lustre/osc/osc_request.c
@@ -3326,7 +3326,7 @@ static int __init osc_init(void)
 
 	reqsize = 1;
 	while (reqsize < OST_MAXREQSIZE)
-		reqsize = reqsize << 1;
+		reqsize <<= 1;
 
 	/*
 	 * We don't enlarge the request count in OSC pool according to
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-12  3:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10  6:40 [PATCH] staging: lustre: lustre: osc: Modify right hand side of an assignment Janani Ravichandran
2016-02-12  3:28 ` [Outreachy kernel] " Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.