]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: pch_uart.c: remove debugfs dentry pointer
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Feb 2021 14:59:00 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:05 +0000 (09:34 +0100)
commit2d7e6de549f7a757eb4dc7738e141161fa21a1b8
tree4b4b1cbe611c775f937cee84e8217da2be7760e7
parent1b8bd930b05ba1f659bccfc6ef406e93916f57ed
tty: serial: pch_uart.c: remove debugfs dentry pointer

No need to keep around the dentry pointer for the debugfs file if all it
is used for is to remove it when we are wanting to clean up, as the
pointer can be looked up directly from debugfs instead.

This also removes pointless #ifdef CONFIG_DEBUG_FS brackets as the
compiler is smart enough to handle this properly if debugfs is disabled
without us having to worry about it.

Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: linux-serial@vger.kernel.org
Link: https://lore.kernel.org/r/20210216145900.3835160-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c