diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-08-29 19:30:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-12 18:24:12 -0700 |
commit | 5019c8f017495cd8da21df7a49a5ed41377965e6 (patch) | |
tree | 6b30b332516ab7ad93d86686c6ce787214495e44 /drivers/staging/lustre/lnet/lnet/lib-ptl.c | |
parent | staging: lustre: include: put constant on the right of binary operator (diff) | |
download | linux-dev-5019c8f017495cd8da21df7a49a5ed41377965e6.tar.xz linux-dev-5019c8f017495cd8da21df7a49a5ed41377965e6.zip |
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>
Diffstat (limited to 'drivers/staging/lustre/lnet/lnet/lib-ptl.c')
-rw-r--r-- | drivers/staging/lustre/lnet/lnet/lib-ptl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/lib-ptl.c b/drivers/staging/lustre/lnet/lnet/lib-ptl.c index 84707c5cb464..b4f573ab62cc 100644 --- a/drivers/staging/lustre/lnet/lnet/lib-ptl.c +++ b/drivers/staging/lustre/lnet/lnet/lib-ptl.c @@ -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 |