summaryrefslogtreecommitdiffstats
path: root/fs/cifsd/oplock.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 10:59:56 +0200
committerNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 11:13:55 +0200
commitc986ed981ae6a622a453c533389994b6aed6359b (patch)
tree785945b15b7b9f971dea571d740045b7c3ee3b1e /fs/cifsd/oplock.c
parentcifsd: Alignment should match open parenthesis (diff)
downloadlinux-c986ed981ae6a622a453c533389994b6aed6359b.tar.xz
linux-c986ed981ae6a622a453c533389994b6aed6359b.zip
cifsd: remove unnecessary parentheses around
Fix warnings from checkpatch.pl --strict : CHECK: Unnecessary parentheses around 'brk_op->o_lease->new_state == SMB2_LEASE_NONE_LE' #1511: FILE: oplock.c:1511: + if (brk_op->is_lease && + (brk_op->o_lease->new_state == SMB2_LEASE_NONE_LE) && + atomic_read(&brk_op->breaking_cnt)) Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifsd/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifsd/oplock.c b/fs/cifsd/oplock.c
index 56c68e9cb7ff..f76de7861e7b 100644
--- a/fs/cifsd/oplock.c
+++ b/fs/cifsd/oplock.c
@@ -1262,7 +1262,7 @@ void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp,
/* Skip oplock being break to none */
if (brk_op->is_lease &&
- (brk_op->o_lease->new_state == SMB2_LEASE_NONE_LE) &&
+ brk_op->o_lease->new_state == SMB2_LEASE_NONE_LE &&
atomic_read(&brk_op->breaking_cnt))
goto next;