Skip to content

Commit

Permalink
MIPS: Octeon: remove unnecessary null test before debugfs_remove_recu…
Browse files Browse the repository at this point in the history
…rsive

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>
  • Loading branch information
Fabian Frederick authored and Ralf Baechle committed Aug 1, 2014
1 parent 3b628ca commit 2d6a554
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/cavium-octeon/oct_ilm.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ static __init int oct_ilm_module_init(void)
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);
}

Expand Down

0 comments on commit 2d6a554

Please sign in to comment.