Skip to content

Commit dee8744

Browse files
ColinIanKingkleikamp
authored andcommitted
jfs: remove redundant assignments to ipaimap and ipaimap2
The pointers ipaimap and ipaimap2 are re-assigned with values a second time with the same values when they were initialized. The re-assignments are redundant and can be removed. Cleans up two clang scan build warnings: fs/jfs/jfs_umount.c:42:16: warning: Value stored to 'ipaimap' during its initialization is never read [deadcode.DeadStores] fs/jfs/jfs_umount.c:43:16: warning: Value stored to 'ipaimap2' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Dave Kleikamp <[email protected]>
1 parent 1ea66d7 commit dee8744

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/jfs/jfs_umount.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ int jfs_umount(struct super_block *sb)
6868
/*
6969
* close secondary aggregate inode allocation map
7070
*/
71-
ipaimap2 = sbi->ipaimap2;
7271
if (ipaimap2) {
7372
diUnmount(ipaimap2, 0);
7473
diFreeSpecial(ipaimap2);
@@ -78,7 +77,6 @@ int jfs_umount(struct super_block *sb)
7877
/*
7978
* close aggregate inode allocation map
8079
*/
81-
ipaimap = sbi->ipaimap;
8280
diUnmount(ipaimap, 0);
8381
diFreeSpecial(ipaimap);
8482
sbi->ipaimap = NULL;

0 commit comments

Comments
 (0)