diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-01-05 11:12:37 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-01-06 10:43:30 -0800 |
commit | f4901a182d33d05a3b7020e2af97c635f6c47959 (patch) | |
tree | 9830666d098285868a6b4c47e5169fa4609013fb /fs/xfs/xfs_log_recover.c | |
parent | 8dc9384b7d75012856b02ff44c37566a55fc2abf (diff) | |
download | linux-stable-f4901a182d33d05a3b7020e2af97c635f6c47959.tar.gz linux-stable-f4901a182d33d05a3b7020e2af97c635f6c47959.tar.bz2 linux-stable-f4901a182d33d05a3b7020e2af97c635f6c47959.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 8ecb9a8567b7..96c997ed2ec8 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c @@ -3550,8 +3550,6 @@ xlog_recover_check_summary( uint64_t ifree; int error; - mp = log->l_mp; - freeblks = 0LL; itotal = 0LL; ifree = 0LL; |