summaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-13 03:58:23 +0200
committerJeff Layton <jlayton@kernel.org>2021-04-13 13:26:38 +0200
commitcbe6fc4e01421c890d74422cdd04c6b1c8f62dda (patch)
tree4a635953bd0771aa7ac5e2955a98c44cdc04dc61 /fs/locks.c
parentfs/locks: print full locks information (diff)
downloadlinux-cbe6fc4e01421c890d74422cdd04c6b1c8f62dda.tar.xz
linux-cbe6fc4e01421c890d74422cdd04c6b1c8f62dda.zip
fs/locks: remove useless assignment in fcntl_getlk
Function parameter 'cmd' is rewritten with unused value at locks.c Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c
index ecaecd1f1b58..003873da17e2 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -2372,7 +2372,6 @@ int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock)
if (flock->l_pid != 0)
goto out;
- cmd = F_GETLK;
fl->fl_flags |= FL_OFDLCK;
fl->fl_owner = filp;
}