aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluo penghao <[email protected]>2021-11-04 06:40:07 +0000
committerTheodore Ts'o <[email protected]>2022-01-10 13:25:56 -0500
commitfac888b2be9993d0c740013d26d69c8784acc293 (patch)
treede9e0e85f1f940925d8d40de0af3a17cb15275a8
parenta660be97eb00c4d87bf881e1226fbd9d812690b7 (diff)
ext4: remove unused assignments
The eh assignment in these two places is meaningless, because the function will goto to merge, which will not use eh. The clang_analyzer complains as follows: fs/ext4/extents.c:1988:4 warning: fs/ext4/extents.c:2016:4 warning: Value stored to 'eh' 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]>
-rw-r--r--fs/ext4/extents.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index c3e76a5de661..299d27d04b2b 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2025,7 +2025,6 @@ int ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
+ ext4_ext_get_actual_len(newext));
if (unwritten)
ext4_ext_mark_unwritten(ex);
- eh = path[depth].p_hdr;
nearex = ex;
goto merge;
}
@@ -2054,7 +2053,6 @@ prepend:
+ ext4_ext_get_actual_len(newext));
if (unwritten)
ext4_ext_mark_unwritten(ex);
- eh = path[depth].p_hdr;
nearex = ex;
goto merge;
}