Commit cbe6fc4e authored by Tian Tao's avatar Tian Tao Committed by Jeff Layton

fs/locks: remove useless assignment in fcntl_getlk

Function parameter 'cmd' is rewritten with unused value at locks.c
Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
parent b8da9b10
...@@ -2372,7 +2372,6 @@ int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock) ...@@ -2372,7 +2372,6 @@ int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock)
if (flock->l_pid != 0) if (flock->l_pid != 0)
goto out; goto out;
cmd = F_GETLK;
fl->fl_flags |= FL_OFDLCK; fl->fl_flags |= FL_OFDLCK;
fl->fl_owner = filp; fl->fl_owner = filp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment