Skip to content

Commit c3a4aec

Browse files
Jiapeng Chongbrauner
authored andcommitted
splice: Remove redundant assignment to ret
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 <[email protected]> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4406 Signed-off-by: Jiapeng Chong <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christian Brauner (Microsoft) <[email protected]>
1 parent 5b8e531 commit c3a4aec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/splice.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,6 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
937937
/*
938938
* Do the splice.
939939
*/
940-
ret = 0;
941940
bytes = 0;
942941
len = sd->total_len;
943942
flags = sd->flags;

0 commit comments

Comments
 (0)