Skip to content

Commit a6dbc76

Browse files
luo penghaotytso
authored andcommitted
ext4: remove redundant o_start statement
The if will goto out of the loop, and until the end of the function execution, o_start will not be used again. The clang_analyzer complains as follows: fs/ext4/move_extent.c:635:5 warning: Value stored to 'o_start' is never read Reported-by: Zeal Robot <[email protected]> Signed-off-by: luo penghao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 037e7c5 commit a6dbc76

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/ext4/move_extent.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ ext4_move_extents(struct file *o_filp, struct file *d_filp, __u64 orig_blk,
632632
/* Check hole before the start pos */
633633
if (cur_blk + cur_len - 1 < o_start) {
634634
if (next_blk == EXT_MAX_BLOCKS) {
635-
o_start = o_end;
636635
ret = -ENODATA;
637636
goto out;
638637
}

0 commit comments

Comments
 (0)