diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-08 21:44:08 +0800 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2018-09-21 14:53:04 +0200 |
commit | 98e616fe7c94f9c787092b6364405d99bdf42153 (patch) | |
tree | 7424d62769eb88da162db84bea69eb69d3e6c9b7 /drivers/net/ieee802154 | |
parent | 5b3686c7aaade973b8806dba4ecc99bec8c988f3 (diff) | |
download | linux-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.c | 3 |
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); |