mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
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>
This commit is contained in:
parent
3b628cac65
commit
2d6a554dd5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user