mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ext2: remove redundant condition check
ext2_xattr_destroy_cache() can handle NULL pointer correctly, so there is no need to check NULL pointer before calling ext2_xattr_destroy_cache(). Signed-off-by: Chengguang Xu <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
c0ed7b51ca
commit
569ae92094
1 changed files with 4 additions and 6 deletions
|
|
@ -148,10 +148,9 @@ static void ext2_put_super (struct super_block * sb)
|
|||
|
||||
ext2_quota_off_umount(sb);
|
||||
|
||||
if (sbi->s_ea_block_cache) {
|
||||
ext2_xattr_destroy_cache(sbi->s_ea_block_cache);
|
||||
sbi->s_ea_block_cache = NULL;
|
||||
}
|
||||
ext2_xattr_destroy_cache(sbi->s_ea_block_cache);
|
||||
sbi->s_ea_block_cache = NULL;
|
||||
|
||||
if (!sb_rdonly(sb)) {
|
||||
struct ext2_super_block *es = sbi->s_es;
|
||||
|
||||
|
|
@ -1197,8 +1196,7 @@ cantfind_ext2:
|
|||
sb->s_id);
|
||||
goto failed_mount;
|
||||
failed_mount3:
|
||||
if (sbi->s_ea_block_cache)
|
||||
ext2_xattr_destroy_cache(sbi->s_ea_block_cache);
|
||||
ext2_xattr_destroy_cache(sbi->s_ea_block_cache);
|
||||
percpu_counter_destroy(&sbi->s_freeblocks_counter);
|
||||
percpu_counter_destroy(&sbi->s_freeinodes_counter);
|
||||
percpu_counter_destroy(&sbi->s_dirs_counter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue