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:
Tian Tao 2021-04-13 09:58:23 +08:00 committed by Jeff Layton
parent b8da9b10e2
commit cbe6fc4e01

View File

@ -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;
}