Unverified Commit b1e7828c authored by zhang jiao's avatar zhang jiao Committed by Mark Brown
Browse files

spi: Delete useless checks



Since "res" will never be null, just delete this check.

Signed-off-by: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241112081637.40962-1-zhangjiao2@cmss.chinamobile.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c6d0529f
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -984,9 +984,6 @@ static void spi_res_free(void *res)
{
	struct spi_res *sres = container_of(res, struct spi_res, data);

	if (!res)
		return;

	WARN_ON(!list_empty(&sres->entry));
	kfree(sres);
}