Commit 01482d24 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thierry Reding
Browse files

pwm: imx: Remove if block where the condition is always wrong



The ->remove() callback is only called when probe returned successfully.
In this case the driver data cannot be NULL.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 5d0a4c11
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -444,8 +444,6 @@ static int imx_pwm_remove(struct platform_device *pdev)
	struct imx_chip *imx;

	imx = platform_get_drvdata(pdev);
	if (imx == NULL)
		return -ENODEV;

	imx_pwm_clk_disable_unprepare(&imx->chip);