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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Uwe Kleine-König 2019-01-07 20:53:49 +01:00 committed by Thierry Reding
parent 5d0a4c1189
commit 01482d2443
1 changed files with 0 additions and 2 deletions

View File

@ -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);