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

Commit 98e616fe authored by zhong jiang's avatar zhong jiang Committed by Stefan Schmidt
Browse files

ieee802154: remove unecessary condition check before debugfs_remove_recursive



debugfs_remove_recursive has taken IS_ERR_OR_NULL into account. So just
remove the condition check before debugfs_remove_recursive.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent 5b3686c7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1308,7 +1308,6 @@ static int adf7242_remove(struct spi_device *spi)
{
	struct adf7242_local *lp = spi_get_drvdata(spi);

	if (!IS_ERR_OR_NULL(lp->debugfs_root))
	debugfs_remove_recursive(lp->debugfs_root);

	cancel_delayed_work_sync(&lp->work);