mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
fat: Cleanup nls_unload() usage
Other users doesn't check NULL explicitly. So, these doesn't also check to remove inconsistency. Signed-off-by: OGAWA Hirofumi <[email protected]>
This commit is contained in:
parent
3ed3dec156
commit
1bdb6f9199
1 changed files with 2 additions and 4 deletions
|
|
@ -1497,10 +1497,8 @@ out_fail:
|
|||
iput(fat_inode);
|
||||
if (root_inode)
|
||||
iput(root_inode);
|
||||
if (sbi->nls_io)
|
||||
unload_nls(sbi->nls_io);
|
||||
if (sbi->nls_disk)
|
||||
unload_nls(sbi->nls_disk);
|
||||
unload_nls(sbi->nls_io);
|
||||
unload_nls(sbi->nls_disk);
|
||||
if (sbi->options.iocharset != fat_default_iocharset)
|
||||
kfree(sbi->options.iocharset);
|
||||
sb->s_fs_info = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue