summaryrefslogtreecommitdiffstats
path: root/kernel/irq/debugfs.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-06-24 11:05:59 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-24 11:43:53 +0200
commitc2ce34c0a0e5187195ecade872be950d2611ba68 (patch)
treeb0953c50658cc35611efa5486fc984e5f7f3fbbe /kernel/irq/debugfs.c
parentMerge tag 'irqchip-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/maz... (diff)
downloadlinux-c2ce34c0a0e5187195ecade872be950d2611ba68.tar.xz
linux-c2ce34c0a0e5187195ecade872be950d2611ba68.zip
genirq/debugfs: Remove pointless NULL pointer check
debugfs_remove() has it's own NULL pointer check. Remove the conditional and make irq_remove_debugfs_entry() an inline helper Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/debugfs.c')
-rw-r--r--kernel/irq/debugfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/irq/debugfs.c b/kernel/irq/debugfs.c
index dbd6e78db213..4d384edc0c64 100644
--- a/kernel/irq/debugfs.c
+++ b/kernel/irq/debugfs.c
@@ -3,7 +3,6 @@
*
* This file is licensed under the GPL V2.
*/
-#include <linux/debugfs.h>
#include <linux/irqdomain.h>
#include <linux/irq.h>
@@ -191,12 +190,6 @@ void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc)
&dfs_irq_ops);
}
-void irq_remove_debugfs_entry(struct irq_desc *desc)
-{
- if (desc->debugfs_file)
- debugfs_remove(desc->debugfs_file);
-}
-
static int __init irq_debugfs_init(void)
{
struct dentry *root_dir;