Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
81d4b5c4 15d21761

+2 -3
+2 -3
drivers/pwm/pwm-renesas-tpu.c
··· 425 425 static int tpu_remove(struct platform_device *pdev) 426 426 { 427 427 struct tpu_device *tpu = platform_get_drvdata(pdev); 428 - int ret; 429 428 430 - ret = pwmchip_remove(&tpu->chip); 429 + pwmchip_remove(&tpu->chip); 431 430 432 431 pm_runtime_disable(&pdev->dev); 433 432 434 - return ret; 433 + return 0; 435 434 } 436 435 437 436 #ifdef CONFIG_OF