aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-10-17 03:53:51 +0000
committerSteve French <stfrench@microsoft.com>2019-11-25 01:14:14 -0600
commitf28a2e5ebc54248757f5baf5b7ff1d4eb80ebae7 (patch)
tree29179ec7de29de37ccca11401679352eb184339e /fs/cifs/file.c
parentcifs: add support for flock (diff)
downloadlinux-dev-f28a2e5ebc54248757f5baf5b7ff1d4eb80ebae7.tar.xz
linux-dev-f28a2e5ebc54248757f5baf5b7ff1d4eb80ebae7.zip
CIFS: remove set but not used variables 'cinode' and 'netfid'
Fixes gcc '-Wunused-but-set-variable' warning: fs/cifs/file.c: In function 'cifs_flock': fs/cifs/file.c:1704:8: warning: variable 'netfid' set but not used [-Wunused-but-set-variable] fs/cifs/file.c:1702:24: warning: variable 'cinode' set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index f3fd5b6f456e..a80ec683ea32 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1706,9 +1706,7 @@ int cifs_flock(struct file *file, int cmd, struct file_lock *fl)
bool posix_lck = false;
struct cifs_sb_info *cifs_sb;
struct cifs_tcon *tcon;
- struct cifsInodeInfo *cinode;
struct cifsFileInfo *cfile;
- __u16 netfid;
__u32 type;
rc = -EACCES;
@@ -1723,8 +1721,6 @@ int cifs_flock(struct file *file, int cmd, struct file_lock *fl)
cifs_read_flock(fl, &type, &lock, &unlock, &wait_flag,
tcon->ses->server);
cifs_sb = CIFS_FILE_SB(file);
- netfid = cfile->fid.netfid;
- cinode = CIFS_I(file_inode(file));
if (cap_unix(tcon->ses) &&
(CIFS_UNIX_FCNTL_CAP & le64_to_cpu(tcon->fsUnixInfo.Capability)) &&