Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> wrote: > The remove callback is only called after probe completed successfully. > In this case platform_set_drvdata() was called with a non-NULL argument > (in wlcore_probe()) and so wl is never NULL. > > This is a preparation for making platform remove callbacks return void. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 69ddcea56443 wifi: wl12xx: Drop if with an always false condition -- https://patchwork.kernel.org/project/linux-wireless/patch/20220715224619.ht7bbzzrmysielm7@xxxxxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches