]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unnecessary 'offset' assignment
authorluo penghao <luo.penghao@zte.com.cn>
Wed, 8 Dec 2021 07:53:07 +0000 (07:53 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2022 18:25:56 +0000 (13:25 -0500)
commit405782fbd5ab8e9e93538f98bdcbb1d19f7492dd
tree158ddbc5914d81fed59237aea3c50d10cd6fd360
parent251b72f80d2d238dc685dac9b98db1c66b18e79f
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 <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Link: https://lore.kernel.org/r/20211208075307.404703-1-luo.penghao@zte.com.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/dir.c