Re: [PATCH 8/8] staging: lustre: put constant on the right of binary operator

2015-08-30 Thread Julia Lawall
On Sat, 29 Aug 2015, Joe Perches wrote: > On Sat, 2015-08-29 at 19:30 +0200, Julia Lawall wrote: > > Move constants to the right of binary operators. > [] > > diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c > > b/drivers/staging/lustre/lustre/ptlrpc/client.c > [] > > @@ -2954,7 +2954

Re: [PATCH 8/8] staging: lustre: put constant on the right of binary operator

2015-08-30 Thread Julia Lawall
On Sat, 29 Aug 2015, Joe Perches wrote: > On Sat, 2015-08-29 at 19:30 +0200, Julia Lawall wrote: > > Move constants to the right of binary operators. > [] > > diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c > > b/drivers/staging/lustre/lustre/ptlrpc/client.c > [] > > @@ -2954,7 +2954

Re: [PATCH 8/8] staging: lustre: put constant on the right of binary operator

2015-08-29 Thread Joe Perches
On Sat, 2015-08-29 at 19:30 +0200, Julia Lawall wrote: > Move constants to the right of binary operators. [] > diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c > b/drivers/staging/lustre/lustre/ptlrpc/client.c [] > @@ -2954,7 +2954,7 @@ void ptlrpc_init_xid(void) > } > > /*

[PATCH 8/8] staging: lustre: put constant on the right of binary operator

2015-08-29 Thread Julia Lawall
Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( - c + e b - e + c | - c < e + e > c ) // Signed-off-by: Julia La