diff options
| author | luo penghao <[email protected]> | 2021-11-04 06:34:06 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2022-01-10 18:25:56 +0000 |
| commit | a660be97eb00c4d87bf881e1226fbd9d812690b7 (patch) | |
| tree | 3e991ac9b31d0c7b74c4bd0ee0f9d9abb22e9583 /fs/ext4/fast_commit.c | |
| parent | ext4: remove useless resetting io_end_size in mpage_process_page() (diff) | |
| download | kernel-a660be97eb00c4d87bf881e1226fbd9d812690b7.tar.gz kernel-a660be97eb00c4d87bf881e1226fbd9d812690b7.zip | |
ext4: remove redundant statement
The local variable assignment at the end of the function is meaningless.
The clang_analyzer complains as follows:
fs/ext4/fast_commit.c:779:2 warning:
Value stored to 'dst' 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]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
| -rw-r--r-- | fs/ext4/fast_commit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c index a6d647325742..5ae8026a0c56 100644 --- a/fs/ext4/fast_commit.c +++ b/fs/ext4/fast_commit.c @@ -746,7 +746,6 @@ static bool ext4_fc_add_dentry_tlv(struct super_block *sb, u32 *crc, ext4_fc_memcpy(sb, dst, &fcd, sizeof(fcd), crc); dst += sizeof(fcd); ext4_fc_memcpy(sb, dst, fc_dentry->fcd_name.name, dlen, crc); - dst += dlen; return true; } |
