Skip to content

Commit dc59219

Browse files
wb-zjp846396brauner
authored andcommitted
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: 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>
1 parent c3a4aec commit dc59219

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/locks.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,6 @@ int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 *flock)
24252425
if (flock->l_pid != 0)
24262426
goto out;
24272427

2428-
cmd = F_GETLK64;
24292428
fl->fl_flags |= FL_OFDLCK;
24302429
fl->fl_owner = filp;
24312430
}

0 commit comments

Comments
 (0)