summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-08-20 22:00:47 +0800
committerSteve French <stfrench@microsoft.com>2019-09-16 11:43:37 -0500
commit2617474bfa33ab6c47c515e57dfbe754f8970640 (patch)
tree65d08b1a2b879ba4adeab596af278cc886b3a4a8 /fs/cifs/smb2ops.c
parent1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce (diff)
downloadlinux-2617474bfa33ab6c47c515e57dfbe754f8970640.tar.gz
linux-2617474bfa33ab6c47c515e57dfbe754f8970640.tar.bz2
linux-2617474bfa33ab6c47c515e57dfbe754f8970640.zip
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/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 461a68fdff1f..070d0b7b21dc 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -2960,7 +2960,6 @@ static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
loff_t offset, loff_t len)
{
struct inode *inode;
- struct cifsInodeInfo *cifsi;
struct cifsFileInfo *cfile = file->private_data;
struct file_zero_data_information fsctl_buf;
long rc;
@@ -2970,7 +2969,6 @@ static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
xid = get_xid();
inode = d_inode(cfile->dentry);
- cifsi = CIFS_I(inode);
/* Need to make file sparse, if not already, before freeing range. */
/* Consider adding equivalent for compressed since it could also work */