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

pwm: brcmstb: 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 brcmstb_pwm_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
b4334246 319333b0

+2 -3
+2 -3
drivers/pwm/pwm-brcmstb.c
··· 282 282 static int brcmstb_pwm_remove(struct platform_device *pdev) 283 283 { 284 284 struct brcmstb_pwm *p = platform_get_drvdata(pdev); 285 - int ret; 286 285 287 - ret = pwmchip_remove(&p->chip); 286 + pwmchip_remove(&p->chip); 288 287 clk_disable_unprepare(p->clk); 289 288 290 - return ret; 289 + return 0; 291 290 } 292 291 293 292 #ifdef CONFIG_PM_SLEEP