mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
ieee802154: ca8210: remove redundant condition check before debugfs_remove
debugfs_remove has taken the IS_ERR into account. Just remove the unnecessary condition. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
This commit is contained in:
parent
98e616fe7c
commit
659902db70
1 changed files with 1 additions and 2 deletions
|
@ -3043,8 +3043,7 @@ static void ca8210_test_interface_clear(struct ca8210_priv *priv)
|
|||
{
|
||||
struct ca8210_test *test = &priv->test;
|
||||
|
||||
if (!IS_ERR(test->ca8210_dfs_spi_int))
|
||||
debugfs_remove(test->ca8210_dfs_spi_int);
|
||||
debugfs_remove(test->ca8210_dfs_spi_int);
|
||||
kfifo_free(&test->up_fifo);
|
||||
dev_info(&priv->spi->dev, "Test interface removed\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue