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 |
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 --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); }
.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(-)