Commit 1bdb6f91 authored by OGAWA Hirofumi's avatar OGAWA Hirofumi

fat: Cleanup nls_unload() usage

Other users doesn't check NULL explicitly. So, these doesn't also
check to remove inconsistency.
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
parent 3ed3dec1
......@@ -1497,10 +1497,8 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment