xfs: Remove redundant assignment of mp
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 5 Jan 2022 19:12:37 +0000 (11:12 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 6 Jan 2022 18:43:30 +0000 (10:43 -0800)
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>
fs/xfs/xfs_log_recover.c

index 8ecb9a8567b75f432f4b4cc93d218cbb0a0a7da0..96c997ed2ec8faa54d4429dd22e338d9e7ebb605 100644 (file)
@@ -3550,8 +3550,6 @@ xlog_recover_check_summary(
        uint64_t                ifree;
        int                     error;
 
-       mp = log->l_mp;
-
        freeblks = 0LL;
        itotal = 0LL;
        ifree = 0LL;