diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-29 03:16:19 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-08-01 18:06:47 -0400 |
commit | 2d6a554dd5128195300f2d2cff36c590b1b88049 (patch) | |
tree | 2dbb7ffcbceea1c3688337f26c0ee1cf37a3c94e /arch/mips/cavium-octeon | |
parent | 3b628cac65fa57fe7d948b9b24b9731cab7dd44f (diff) |
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/cavium-octeon')
-rw-r--r-- | arch/mips/cavium-octeon/oct_ilm.c | 3 |
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: | |||
194 | static __exit void oct_ilm_module_exit(void) | 194 | static __exit void oct_ilm_module_exit(void) |
195 | { | 195 | { |
196 | disable_timer(TIMER_NUM); | 196 | disable_timer(TIMER_NUM); |
197 | if (dir) | 197 | debugfs_remove_recursive(dir); |
198 | debugfs_remove_recursive(dir); | ||
199 | free_irq(OCTEON_IRQ_TIMER0 + TIMER_NUM, 0); | 198 | free_irq(OCTEON_IRQ_TIMER0 + TIMER_NUM, 0); |
200 | } | 199 | } |
201 | 200 | ||