Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 659902db authored by zhong jiang's avatar zhong jiang Committed by Stefan Schmidt
Browse files

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: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 98e616fe
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3043,7 +3043,6 @@ 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);
	kfifo_free(&test->up_fifo);
	dev_info(&priv->spi->dev, "Test interface removed\n");