Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <colin.i.king@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>

authored by

Colin Ian King and committed by
Dave Kleikamp
dee87445 1ea66d71

-2
-2
fs/jfs/jfs_umount.c
··· 68 68 /* 69 69 * close secondary aggregate inode allocation map 70 70 */ 71 - ipaimap2 = sbi->ipaimap2; 72 71 if (ipaimap2) { 73 72 diUnmount(ipaimap2, 0); 74 73 diFreeSpecial(ipaimap2); ··· 77 78 /* 78 79 * close aggregate inode allocation map 79 80 */ 80 - ipaimap = sbi->ipaimap; 81 81 diUnmount(ipaimap, 0); 82 82 diFreeSpecial(ipaimap); 83 83 sbi->ipaimap = NULL;