mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-16 03:54:10 +00:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue