Commit dc592190 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Christian Brauner (Microsoft)

fs/locks: Remove redundant assignment to cmd

Variable 'cmd' set but not used.

fs/locks.c:2428:3: warning: Value stored to 'cmd' is never read.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4439Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
parent c3a4aec0
...@@ -2425,7 +2425,6 @@ int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 *flock) ...@@ -2425,7 +2425,6 @@ int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 *flock)
if (flock->l_pid != 0) if (flock->l_pid != 0)
goto out; goto out;
cmd = F_GETLK64;
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