diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-03-16 05:48:09 +0900 |
---|---|---|
committer | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2010-03-16 05:49:05 +0900 |
commit | 1bdb6f9199def1c3538c18089e499f5df5ff1747 (patch) | |
tree | ce7317cebdb4881fb84080e17027f2122be9268f | |
parent | 3ed3dec1568d1232fcfb2aa8c5f9e3f38940c9d8 (diff) | |
download | op-kernel-dev-1bdb6f9199def1c3538c18089e499f5df5ff1747.zip op-kernel-dev-1bdb6f9199def1c3538c18089e499f5df5ff1747.tar.gz |
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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 0ce143b..c611818 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; |