Skip to content

Commit

Permalink
fs/locks: Remove redundant assignment to cmd
Browse files Browse the repository at this point in the history
Variable 'cmd' set but not used.

fs/locks.c:2428:3: warning: Value stored to 'cmd' is never read.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4439
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
  • Loading branch information
Jiapeng Chong authored and Christian Brauner (Microsoft) committed Mar 9, 2023
1 parent c3a4aec commit dc59219
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,6 @@ int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 *flock)
if (flock->l_pid != 0)
goto out;

cmd = F_GETLK64;
fl->fl_flags |= FL_OFDLCK;
fl->fl_owner = filp;
}
Expand Down

0 comments on commit dc59219

Please sign in to comment.