diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-04-13 04:58:23 +0300 |
---|---|---|
committer | Jeff Layton <jlayton@kernel.org> | 2021-04-13 14:26:38 +0300 |
commit | cbe6fc4e01421c890d74422cdd04c6b1c8f62dda (patch) | |
tree | 4a635953bd0771aa7ac5e2955a98c44cdc04dc61 /fs/locks.c | |
parent | b8da9b10e26cee58eba7b0fd72717127edfb316b (diff) | |
download | linux-cbe6fc4e01421c890d74422cdd04c6b1c8f62dda.tar.xz |
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.c | 1 |
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; } |