summaryrefslogtreecommitdiff
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-08-20 17:00:47 +0300
committerSteve French <stfrench@microsoft.com>2019-09-16 19:43:37 +0300
commit2617474bfa33ab6c47c515e57dfbe754f8970640 (patch)
tree65d08b1a2b879ba4adeab596af278cc886b3a4a8 /fs/cifs/file.c
parent1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce (diff)
downloadlinux-2617474bfa33ab6c47c515e57dfbe754f8970640.tar.xz
cifs: remove unused variable
In smb3_punch_hole, variable cifsi set but not used, remove it. In cifs_lock, variable netfid set but not used, remove it. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 97090693d182..ab07ae882e62 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1695,7 +1695,6 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *flock)
struct cifs_tcon *tcon;
struct cifsInodeInfo *cinode;
struct cifsFileInfo *cfile;
- __u16 netfid;
__u32 type;
rc = -EACCES;
@@ -1711,7 +1710,6 @@ int cifs_lock(struct file *file, int cmd, struct file_lock *flock)
cifs_read_flock(flock, &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) &&