staging: lustre: lnet: lib-ptl.c: put constant on the right of binary operator

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/)

// <smpl>
@@
constant c;
expression e;
binary operator b = {==,!=,&,|};
@@

(
- c
+ e
b
- e
+ c
|
- c < e
+ e > c
)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Julia Lawall 2015-08-29 19:30:06 +02:00 committed by Greg Kroah-Hartman
parent 625a31217e
commit 5019c8f017
1 changed files with 2 additions and 2 deletions

View File

@ -420,9 +420,9 @@ lnet_mt_match_md(struct lnet_match_table *mtable,
if (info->mi_opc == LNET_MD_OP_GET ||
!lnet_ptl_is_lazy(the_lnet.ln_portals[info->mi_portal]))
return LNET_MATCHMD_DROP | exhausted;
return exhausted | LNET_MATCHMD_DROP;
return LNET_MATCHMD_NONE | exhausted;
return exhausted | LNET_MATCHMD_NONE;
}
static int