Messages in this thread Patch in this message | | | Date | Fri, 14 Aug 2009 12:43:01 -0000 | From | Thomas Gleixner <> | Subject | [patch 06/11] hfsplus: cleanup unload_nls() calls |
| |
unload_nls() can be called with a NULL pointer now. Remove the pointer checks.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Roman Zippel <zippel@linux-m68k.org> --- fs/hfsplus/super.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Index: linux-2.6-tip/fs/hfsplus/super.c =================================================================== --- linux-2.6-tip.orig/fs/hfsplus/super.c +++ linux-2.6-tip/fs/hfsplus/super.c @@ -229,8 +229,7 @@ static void hfsplus_put_super(struct sup iput(HFSPLUS_SB(sb).alloc_file); iput(HFSPLUS_SB(sb).hidden_dir); brelse(HFSPLUS_SB(sb).s_vhbh); - if (HFSPLUS_SB(sb).nls) - unload_nls(HFSPLUS_SB(sb).nls); + unload_nls(HFSPLUS_SB(sb).nls); kfree(sb->s_fs_info); sb->s_fs_info = NULL; @@ -464,8 +463,7 @@ out: cleanup: hfsplus_put_super(sb); - if (nls) - unload_nls(nls); + unload_nls(nls); return err; }
| |