x86/RAS/mce_amd_inj: Remove debugfs dir recursively on exit
authorBorislav Petkov <bp@suse.de>
Mon, 26 Sep 2016 08:31:52 +0000 (10:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 26 Sep 2016 09:13:17 +0000 (11:13 +0200)
commitb199ac6c4943aa0db246163bf6b483e2bb53431b
tree9482f9411e49e241aedd4a5b78fdbda7b2dc1531
parent8b44f00f8c952ab6eb658090383571b2ec7d253f
x86/RAS/mce_amd_inj: Remove debugfs dir recursively on exit

Simplify exit_mce_inject() by using debugfs_remove_recursive() and do
away with the noodling over the dentry elements.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160926083152.30848-3-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/ras/mce_amd_inj.c