Skip to content

Commit 81d4b5c

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: renesas-tpu: 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 tpu_remove(). Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 15d2176 commit 81d4b5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pwm/pwm-renesas-tpu.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,12 @@ static int tpu_probe(struct platform_device *pdev)
425425
static int tpu_remove(struct platform_device *pdev)
426426
{
427427
struct tpu_device *tpu = platform_get_drvdata(pdev);
428-
int ret;
429428

430-
ret = pwmchip_remove(&tpu->chip);
429+
pwmchip_remove(&tpu->chip);
431430

432431
pm_runtime_disable(&pdev->dev);
433432

434-
return ret;
433+
return 0;
435434
}
436435

437436
#ifdef CONFIG_OF

0 commit comments

Comments
 (0)