Skip to content

Commit

Permalink
splice: Remove redundant assignment to ret
Browse files Browse the repository at this point in the history
The variable ret belongs to redundant assignment and can be deleted.

fs/splice.c:940:2: warning: Value stored to 'ret' is never read.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4406
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 5b8e531 commit c3a4aec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,6 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
/*
* Do the splice.
*/
ret = 0;
bytes = 0;
len = sd->total_len;
flags = sd->flags;
Expand Down

0 comments on commit c3a4aec

Please sign in to comment.