summaryrefslogtreecommitdiff
path: root/arch/mips/cavium-octeon/oct_ilm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/cavium-octeon/oct_ilm.c')
-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);
}