Skip to content

Commit f4901a1

Browse files
Jiapeng ChongDarrick J. Wong
authored andcommitted
xfs: Remove redundant assignment of mp
mp is being initialized to log->l_mp but this is never read as record is overwritten later on. Remove the redundant assignment. Cleans up the following clang-analyzer warning: fs/xfs/xfs_log_recover.c:3543:20: warning: Value stored to 'mp' during its initialization is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
1 parent 8dc9384 commit f4901a1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/xfs/xfs_log_recover.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,8 +3550,6 @@ xlog_recover_check_summary(
35503550
uint64_t ifree;
35513551
int error;
35523552

3553-
mp = log->l_mp;
3554-
35553553
freeblks = 0LL;
35563554
itotal = 0LL;
35573555
ifree = 0LL;

0 commit comments

Comments
 (0)