summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-29 11:16:19 +0400
committerRalf Baechle <ralf@linux-mips.org>2014-08-02 02:06:47 +0400
commit2d6a554dd5128195300f2d2cff36c590b1b88049 (patch)
tree2dbb7ffcbceea1c3688337f26c0ee1cf37a3c94e /arch/mips
parent3b628cac65fa57fe7d948b9b24b9731cab7dd44f (diff)
downloadlinux-2d6a554dd5128195300f2d2cff36c590b1b88049.tar.xz
MIPS: Octeon: remove unnecessary null test before debugfs_remove_recursive
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>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/cavium-octeon/oct_ilm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/cavium-octeon/oct_ilm.c b/arch/mips/cavium-octeon/oct_ilm.c
index 71b213dbb621..2d68a39f1443 100644
--- a/arch/mips/cavium-octeon/oct_ilm.c
+++ b/arch/mips/cavium-octeon/oct_ilm.c
@@ -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);
}