spi: Delete useless checks

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

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241112081637.40962-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
zhang jiao 2024-11-12 16:16:37 +08:00 committed by Mark Brown
parent c6d0529fb7
commit b1e7828cf9
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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);
}