[PATCH] media: atmel: atmel-isc: remove unneeded IS_ERR()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There has already been error check in clk_unregister(), so remove error
check before calling clk_unregister().

Signed-off-by: Guo Zhengkui <guozhengkui@xxxxxxxx>
---
 drivers/media/platform/atmel/atmel-isc-clk.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/media/platform/atmel/atmel-isc-clk.c b/drivers/media/platform/atmel/atmel-isc-clk.c
index 2059fe376b00..9decd8fb03d5 100644
--- a/drivers/media/platform/atmel/atmel-isc-clk.c
+++ b/drivers/media/platform/atmel/atmel-isc-clk.c
@@ -304,8 +304,7 @@ void isc_clk_cleanup(struct isc_device *isc)
 	for (i = 0; i < ARRAY_SIZE(isc->isc_clks); i++) {
 		struct isc_clk *isc_clk = &isc->isc_clks[i];
 
-		if (!IS_ERR(isc_clk->clk))
-			clk_unregister(isc_clk->clk);
+		clk_unregister(isc_clk->clk);
 	}
 }
 EXPORT_SYMBOL_GPL(isc_clk_cleanup);
-- 
2.20.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux