]> Git Repo - linux.git/commitdiff
jfs: Deletion of an unnecessary check before the function call "unload_nls"
authorMarkus Elfring <[email protected]>
Sun, 1 Feb 2015 16:00:24 +0000 (17:00 +0100)
committerDave Kleikamp <[email protected]>
Mon, 2 Feb 2015 21:02:34 +0000 (15:02 -0600)
The unload_nls() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Dave Kleikamp <[email protected]>
fs/jfs/super.c

index 16c3a9556634ddf7b294bf85bb73c2a5025258b3..5d30c56ae07506f09f92d11d02b03a39213a0797 100644 (file)
@@ -619,8 +619,7 @@ out_mount_failed:
        iput(sbi->direct_inode);
        sbi->direct_inode = NULL;
 out_unload:
-       if (sbi->nls_tab)
-               unload_nls(sbi->nls_tab);
+       unload_nls(sbi->nls_tab);
 out_kfree:
        kfree(sbi);
        return ret;
This page took 0.066377 seconds and 4 git commands to generate.