Commit 1bdb6f9199def1c3538c18089e499f5df5ff1747
1 parent
3ed3dec156
Exists in
master
and in
4 other branches
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 <hirofumi@mail.parknet.co.jp>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
fs/fat/inode.c
... | ... | @@ -1497,10 +1497,8 @@ |
1497 | 1497 | iput(fat_inode); |
1498 | 1498 | if (root_inode) |
1499 | 1499 | iput(root_inode); |
1500 | - if (sbi->nls_io) | |
1501 | - unload_nls(sbi->nls_io); | |
1502 | - if (sbi->nls_disk) | |
1503 | - unload_nls(sbi->nls_disk); | |
1500 | + unload_nls(sbi->nls_io); | |
1501 | + unload_nls(sbi->nls_disk); | |
1504 | 1502 | if (sbi->options.iocharset != fat_default_iocharset) |
1505 | 1503 | kfree(sbi->options.iocharset); |
1506 | 1504 | sb->s_fs_info = NULL; |