Skip to content

Commit 15d2176

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent f0e96e2 commit 15d2176

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pwm/pwm-rcar.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,12 @@ static int rcar_pwm_probe(struct platform_device *pdev)
241241
static int rcar_pwm_remove(struct platform_device *pdev)
242242
{
243243
struct rcar_pwm_chip *rcar_pwm = platform_get_drvdata(pdev);
244-
int ret;
245244

246-
ret = pwmchip_remove(&rcar_pwm->chip);
245+
pwmchip_remove(&rcar_pwm->chip);
247246

248247
pm_runtime_disable(&pdev->dev);
249248

250-
return ret;
249+
return 0;
251250
}
252251

253252
static const struct of_device_id rcar_pwm_of_table[] = {

0 commit comments

Comments
 (0)