--- zzzz-none-000/linux-3.10.107/arch/mips/cavium-octeon/oct_ilm.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/cavium-octeon/oct_ilm.c 2021-02-04 17:41:59.000000000 +0000 @@ -194,8 +194,7 @@ 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); }