From: zhong jiang Date: Fri, 14 Sep 2018 05:04:37 +0000 (+0800) Subject: ieee802154: ca8210: remove redundant condition check before debugfs_remove X-Git-Tag: v4.19~103^2~30^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659902db7008f233e3d514c774b5ff3d46c8edd8;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Stefan Schmidt --- diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index e21279d..0ff5a40 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"); }