From 34d1f637cbf04eb88db10605338ccc6f8e9dedb8 Mon Sep 17 00:00:00 2001 From: Georgiana Rodica Chelu Date: Tue, 18 Mar 2014 17:26:57 +0200 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/llite/llite_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/llite/llite_mmap.c b/drivers/staging/lustre/lustre/llite/llite_mmap.c index f0bc4bf..90b2c0d 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; -- 2.7.4