summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-09-08 21:44:08 +0800
committerStefan Schmidt <stefan@datenfreihafen.org>2018-09-21 14:53:04 +0200
commit98e616fe7c94f9c787092b6364405d99bdf42153 (patch)
tree7424d62769eb88da162db84bea69eb69d3e6c9b7 /drivers/net/ieee802154
parent5b3686c7aaade973b8806dba4ecc99bec8c988f3 (diff)
downloadlinux-98e616fe7c94f9c787092b6364405d99bdf42153.tar.bz2
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: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/adf7242.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c
index 23a52b9293f3..cd1d8faccca5 100644
--- a/drivers/net/ieee802154/adf7242.c
+++ b/drivers/net/ieee802154/adf7242.c
@@ -1308,8 +1308,7 @@ 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);
+ debugfs_remove_recursive(lp->debugfs_root);
cancel_delayed_work_sync(&lp->work);
destroy_workqueue(lp->wqueue);