From: Steve French Date: Tue, 2 Dec 2008 18:53:55 +0000 (+0000) Subject: [CIFS] remove sparse warning X-Git-Tag: firefly_0821_release~16482^2~19 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=acc18aa1e643519035abdab5e72dc75e534b5198;p=firefly-linux-kernel-4.4.55.git [CIFS] remove sparse warning Signed-off-by: Steve French --- diff --git a/fs/cifs/file.c b/fs/cifs/file.c index babd27a4699a..b1e1fc6a6e6a 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -708,7 +708,7 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *pfLock) if ((tcon->ses->capabilities & CAP_UNIX) && (CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) && - (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL == 0)) + ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOPOSIXBRL) == 0)) posix_locking = 1; /* BB add code here to normalize offset and length to account for negative length which we can not accept over the