mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
serial: pch_uart: Remove unneeded NULL check
There is no need to do a NULL check for debugfs_remove(). Quoting Documentation/filesystems/debugfs.txt: "The dentry value can be NULL, in which case nothing will be removed." , so remove the unneeded NULL check. Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ec085c5a51
commit
62f466ee03
1 changed files with 1 additions and 2 deletions
|
|
@ -1862,8 +1862,7 @@ static void pch_uart_exit_port(struct eg20t_port *priv)
|
|||
{
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
if (priv->debugfs)
|
||||
debugfs_remove(priv->debugfs);
|
||||
debugfs_remove(priv->debugfs);
|
||||
#endif
|
||||
uart_remove_one_port(&pch_uart_driver, &priv->port);
|
||||
free_page((unsigned long)priv->rxbuf.buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue