Home
last modified time | relevance | path

Searched hist:faaa2222213b0c44e4f477c93d6f980e0156cda8 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/pwm/
H A Dpwm-omap-dmtimer.cfaaa2222213b0c44e4f477c93d6f980e0156cda8 Wed Jul 07 16:28:28 UTC 2021 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> pwm: omap-dmtimer: 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 pwm_omap_dmtimer_remove()
and considers the device removed anyhow. So returning early results
in a resource leak.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
faaa2222213b0c44e4f477c93d6f980e0156cda8 Wed Jul 07 16:28:28 UTC 2021 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> pwm: omap-dmtimer: 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 pwm_omap_dmtimer_remove()
and considers the device removed anyhow. So returning early results
in a resource leak.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>