summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-09-14 07:04:37 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2018-09-27 15:31:37 +0200
commit659902db7008f233e3d514c774b5ff3d46c8edd8 (patch)
tree017118b71a37ae74cb1e8d36dc8eaaec338b8c80 /drivers/net/ieee802154
parentieee802154: remove unecessary condition check before debugfs_remove_recursive (diff)
downloadlinux-659902db7008f233e3d514c774b5ff3d46c8edd8.tar.xz
linux-659902db7008f233e3d514c774b5ff3d46c8edd8.zip
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>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r--drivers/net/ieee802154/ca8210.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c
index e21279dde85c..0ff5a403a8dc 100644
--- a/drivers/net/ieee802154/ca8210.c
+++ b/drivers/net/ieee802154/ca8210.c
@@ -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");
}