diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-03-15 16:48:09 -0400 |
---|---|---|
committer | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-03-15 16:49:05 -0400 |
commit | 1bdb6f9199def1c3538c18089e499f5df5ff1747 (patch) | |
tree | ce7317cebdb4881fb84080e17027f2122be9268f /fs/fat/inode.c | |
parent | 3ed3dec1568d1232fcfb2aa8c5f9e3f38940c9d8 (diff) |
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>
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 0ce143bd7d56..c611818893b2 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -1497,10 +1497,8 @@ out_fail: | |||
1497 | iput(fat_inode); | 1497 | iput(fat_inode); |
1498 | if (root_inode) | 1498 | if (root_inode) |
1499 | iput(root_inode); | 1499 | iput(root_inode); |
1500 | if (sbi->nls_io) | 1500 | unload_nls(sbi->nls_io); |
1501 | unload_nls(sbi->nls_io); | 1501 | unload_nls(sbi->nls_disk); |
1502 | if (sbi->nls_disk) | ||
1503 | unload_nls(sbi->nls_disk); | ||
1504 | if (sbi->options.iocharset != fat_default_iocharset) | 1502 | if (sbi->options.iocharset != fat_default_iocharset) |
1505 | kfree(sbi->options.iocharset); | 1503 | kfree(sbi->options.iocharset); |
1506 | sb->s_fs_info = NULL; | 1504 | sb->s_fs_info = NULL; |