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>
This commit is contained in:
parent
b8da9b10e2
commit
cbe6fc4e01
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue