aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/llite_mmap.c
diff options
context:
space:
mode:
authorGeorgiana Rodica Chelu <georgiana.chelu93@gmail.com>2014-03-18 17:26:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-18 12:19:32 -0700
commit34d1f637cbf04eb88db10605338ccc6f8e9dedb8 (patch)
tree2b2aea8b1b0fbbf1cb40c88b1e875474c1a45b1f /drivers/staging/lustre/lustre/llite/llite_mmap.c
parentstaging: addac: adt7316.c: Fix line over 80 characters (diff)
downloadlinux-dev-34d1f637cbf04eb88db10605338ccc6f8e9dedb8.tar.xz
linux-dev-34d1f637cbf04eb88db10605338ccc6f8e9dedb8.zip
staging: luster: do not combine value 0 with |
There is no point in combining a variable that is 0 with other things with | The semantic patch used: @@ expression x,e,e1; statement S; @@ if (x == 0) { <... when != x = e1 when != while(...) S when != for(...;...;...) S - x |= e + x = e ...> } Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/llite_mmap.c')
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/llite/llite_mmap.c b/drivers/staging/lustre/lustre/llite/llite_mmap.c
index f0bc4bf9986b..90b2c0d275f9 100644
--- a/drivers/staging/lustre/lustre/llite/llite_mmap.c
+++ b/drivers/staging/lustre/lustre/llite/llite_mmap.c
@@ -370,7 +370,7 @@ restart:
goto restart;
}
- result |= VM_FAULT_LOCKED;
+ result = VM_FAULT_LOCKED;
}
cfs_restore_sigs(set);
return result;