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:
parent
5d0a4c1189
commit
01482d2443
|
@ -444,8 +444,6 @@ static int imx_pwm_remove(struct platform_device *pdev)
|
||||||
struct imx_chip *imx;
|
struct imx_chip *imx;
|
||||||
|
|
||||||
imx = platform_get_drvdata(pdev);
|
imx = platform_get_drvdata(pdev);
|
||||||
if (imx == NULL)
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
imx_pwm_clk_disable_unprepare(&imx->chip);
|
imx_pwm_clk_disable_unprepare(&imx->chip);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue