Commit a998ec3d authored by Wan Jiabing's avatar Wan Jiabing Committed by Bartosz Golaszewski
Browse files

gpio: ftgpio: Remove unneeded ERROR check before clk_disable_unprepare



clk_disable_unprepare() already checks ERROR by using IS_ERR_OR_NULL.
Remove unneeded ERROR check for g->clk.

Signed-off-by: default avatarWan Jiabing <wanjiabing@vivo.com>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 5561a2b0
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -315,8 +315,8 @@ static int ftgpio_gpio_probe(struct platform_device *pdev)
	return 0;

dis_clk:
	if (!IS_ERR(g->clk))
	clk_disable_unprepare(g->clk);

	return ret;
}

@@ -324,8 +324,8 @@ static int ftgpio_gpio_remove(struct platform_device *pdev)
{
	struct ftgpio_gpio *g = platform_get_drvdata(pdev);

	if (!IS_ERR(g->clk))
	clk_disable_unprepare(g->clk);

	return 0;
}