unload_nls() can be called with a NULL pointer now. Remove the pointer check. Signed-off-by: Thomas Gleixner Cc: Steve French --- fs/cifs/cifsfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: linux-2.6-tip/fs/cifs/cifsfs.c =================================================================== --- linux-2.6-tip.orig/fs/cifs/cifsfs.c +++ linux-2.6-tip/fs/cifs/cifsfs.c @@ -185,8 +185,7 @@ out_mount_failed: cifs_sb->mountdata = NULL; } #endif - if (cifs_sb->local_nls) - unload_nls(cifs_sb->local_nls); + unload_nls(cifs_sb->local_nls); kfree(cifs_sb); } return rc; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/