OSDN Git Service

MIPS: Octeon: remove unnecessary null test before debugfs_remove_recursive
authorFabian Frederick <fabf@skynet.be>
Sun, 29 Jun 2014 07:16:19 +0000 (09:16 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:47 +0000 (00:06 +0200)
Fix checkpatch warning:
WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7224/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/oct_ilm.c

index 71b213d..2d68a39 100644 (file)
@@ -194,8 +194,7 @@ err_irq:
 static __exit void oct_ilm_module_exit(void)
 {
        disable_timer(TIMER_NUM);
-       if (dir)
-               debugfs_remove_recursive(dir);
+       debugfs_remove_recursive(dir);
        free_irq(OCTEON_IRQ_TIMER0 + TIMER_NUM, 0);
 }