wifi: ath11k: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 17 Nov 2023 09:30:58 +0000 (10:30 +0100)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 30 Nov 2023 17:05:08 +0000 (19:05 +0200)
commit62e31362033e900a231a119a02ddcef553f11b78
treee671faf99d022cded6af94b225c9c18136ff05c9
parent5082b3e3027eae393a4e86874bffb4ce3f83c26e
wifi: ath11k: Convert to platform remove callback returning void

The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231117093056.873834-9-u.kleine-koenig@pengutronix.de
drivers/net/wireless/ath/ath11k/ahb.c