summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2010-03-15 23:48:09 +0300
committerOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2010-03-15 23:49:05 +0300
commit1bdb6f9199def1c3538c18089e499f5df5ff1747 (patch)
treece7317cebdb4881fb84080e17027f2122be9268f
parent3ed3dec1568d1232fcfb2aa8c5f9e3f38940c9d8 (diff)
downloadlinux-1bdb6f9199def1c3538c18089e499f5df5ff1747.tar.xz
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>
-rw-r--r--fs/fat/inode.c6
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:
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;