On Thu, Jun 01, 2023 at 10:25:54AM +0200, Uwe Kleine-König wrote: > platform_get_drvdata() cannot return NULL as the probe function calls > platform_set_drvdata() with a non-NULL argument or returns with a failure. > In the first case, platform_get_drvdata() returns this non-NULL value and > in the second the remove callback isn't called at all. > > ath10k_ahb_priv() cannot return NULL and ar_ahb is unused after the check > anyhow. > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>