From: Uwe Kleine-König Date: Wed, 7 Jul 2021 16:28:30 +0000 (+0200) Subject: pwm: rcar: Don't check the return code of pwmchip_remove() X-Git-Tag: v5.15-rc1~23^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15d217614fcfde5386f4ebf7c74c6e98df2777c0;p=thirdparty%2Fkernel%2Flinux.git pwm: rcar: Don't check the return code of pwmchip_remove() pwmchip_remove() returns always 0. Don't use the value to make it possible to eventually change the function to return void. Also the driver core ignores the return value of rcar_pwm_remove(). Signed-off-by: Uwe Kleine-König Signed-off-by: Thierry Reding --- diff --git a/drivers/pwm/pwm-rcar.c b/drivers/pwm/pwm-rcar.c index 9daca0c772c71..b437192380e23 100644 --- a/drivers/pwm/pwm-rcar.c +++ b/drivers/pwm/pwm-rcar.c @@ -241,13 +241,12 @@ static int rcar_pwm_probe(struct platform_device *pdev) static int rcar_pwm_remove(struct platform_device *pdev) { struct rcar_pwm_chip *rcar_pwm = platform_get_drvdata(pdev); - int ret; - ret = pwmchip_remove(&rcar_pwm->chip); + pwmchip_remove(&rcar_pwm->chip); pm_runtime_disable(&pdev->dev); - return ret; + return 0; } static const struct of_device_id rcar_pwm_of_table[] = {