Skip to content
Commit ae6ec194 authored by luo penghao's avatar luo penghao Committed by Theodore Ts'o
Browse files

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: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarluo penghao <luo.penghao@zte.com.cn>
Link: https://lore.kernel.org/r/20211208075307.404703-1-luo.penghao@zte.com.cn


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent a6dbc76c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment