Skip to content

Commit

Permalink
fat: Cleanup nls_unload() usage
Browse files Browse the repository at this point in the history
Other users doesn't check NULL explicitly. So, these doesn't also
check to remove inconsistency.

Signed-off-by: OGAWA Hirofumi <[email protected]>
  • Loading branch information
OGAWAHirofumi committed Mar 15, 2010
1 parent 3ed3dec commit 1bdb6f9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bdb6f9

Please sign in to comment.