Skip to content

Commit ae6ec19

Browse files
luo penghaotytso
authored andcommitted
ext4: remove unnecessary 'offset' assignment
Although it is in the loop, offset is reassigned at the beginning of the while loop. And after the loop, the value will not be used The clang_analyzer complains as follows: fs/ext4/dir.c:306:3 warning: Value stored to 'offset' 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 a6dbc76 commit ae6ec19

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/ext4/dir.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ static int ext4_readdir(struct file *file, struct dir_context *ctx)
303303
goto done;
304304
brelse(bh);
305305
bh = NULL;
306-
offset = 0;
307306
}
308307
done:
309308
err = 0;

0 commit comments

Comments
 (0)