projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed3dec
)
fat: Cleanup nls_unload() usage
author
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Mon, 15 Mar 2010 20:48:09 +0000
(
05:48
+0900)
committer
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Mon, 15 Mar 2010 20:49:05 +0000
(
05:49
+0900)
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>
fs/fat/inode.c
patch
|
blob
|
history
diff --git
a/fs/fat/inode.c
b/fs/fat/inode.c
index 0ce143bd7d56a9c387db5dbf6c16624d4cd02e1a..c611818893b274b5e0132d57fca2435afe08c08b 100644
(file)
--- 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;