projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e616f
)
ieee802154: ca8210: remove redundant condition check before debugfs_remove
author
zhong jiang
<zhongjiang@huawei.com>
Fri, 14 Sep 2018 05:04:37 +0000
(13:04 +0800)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Thu, 27 Sep 2018 13:31:37 +0000
(15:31 +0200)
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>
drivers/net/ieee802154/ca8210.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/ca8210.c
b/drivers/net/ieee802154/ca8210.c
index
e21279d
..
0ff5a40
100644
(file)
--- 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");
}