[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211230062905.586150-1-luo.penghao@zte.com.cn>
Date: Thu, 30 Dec 2021 06:29:05 +0000
From: cgel.zte@...il.com
To: Theodore Ts'o <tytso@....edu>
Cc: Andreas Dilger <adilger.kernel@...ger.ca>,
linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org,
luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux] ext4: Delete useless ret assignment
From: luo penghao <luo.penghao@....com.cn>
The assignments in these two places will be overwritten by new
assignments later, so they should be deleted.
The clang_analyzer complains as follows:
fs/ext4/fast_commit.c
Value stored to 'ret' is never read
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: luo penghao <luo.penghao@....com.cn>
---
fs/ext4/fast_commit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c
index 8ea5a81..8d5d044 100644
--- a/fs/ext4/fast_commit.c
+++ b/fs/ext4/fast_commit.c
@@ -1660,7 +1660,7 @@ static int ext4_fc_replay_add_range(struct super_block *sb,
return 0;
}
- ret = ext4_fc_record_modified_inode(sb, inode->i_ino);
+ ext4_fc_record_modified_inode(sb, inode->i_ino);
start = le32_to_cpu(ex->ee_block);
start_pblk = ext4_ext_pblock(ex);
@@ -1785,7 +1785,7 @@ ext4_fc_replay_del_range(struct super_block *sb, struct ext4_fc_tl *tl,
return 0;
}
- ret = ext4_fc_record_modified_inode(sb, inode->i_ino);
+ ext4_fc_record_modified_inode(sb, inode->i_ino);
jbd_debug(1, "DEL_RANGE, inode %ld, lblk %d, len %d\n",
inode->i_ino, le32_to_cpu(lrange.fc_lblk),
--
2.15.2
Powered by blists - more mailing lists