diff mbox series

[1/4] pwm: imx: remove if block where the condition is always wrong

Message ID 20181119195808.16436-1-u.kleine-koenig@pengutronix.de
State Superseded
Headers show
Series [1/4] pwm: imx: remove if block where the condition is always wrong | expand

Commit Message

Uwe Kleine-König Nov. 19, 2018, 7:58 p.m. UTC
.remove 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>
---
 drivers/pwm/pwm-imx.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Uwe Kleine-König Dec. 21, 2018, 3:04 p.m. UTC | #1
Hello Thierry,

are you done with picking pwm patches for this cycle?

If yes and I don't get any feedback for my still outstanding patches,
I'd rebase and resend them.

Best regards
Uwe
diff mbox series

Patch

diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index 1d5242c9cde0..7296578571f0 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -312,8 +312,6 @@  static int imx_pwm_remove(struct platform_device *pdev)
 	struct imx_chip *imx;
 
 	imx = platform_get_drvdata(pdev);
-	if (imx == NULL)
-		return -ENODEV;
 
 	return pwmchip_remove(&imx->chip);
 }