]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: img-hash - use list_first_entry_or_null to simplify digest
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 28 Mar 2026 10:20:44 +0000 (11:20 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Apr 2026 00:56:13 +0000 (08:56 +0800)
commit3a31b7fda695da81a2e2fe6812af94e8bf61624a
treeca9dd30ea71d304a2279e9e01518c85f416ac0b7
parentcdadc14359378c0cf02251c86ffbc606f55bfadd
crypto: img-hash - use list_first_entry_or_null to simplify digest

Use list_first_entry_or_null() to simplify img_hash_digest() and remove
the now-unused local 'struct img_hash_dev *' variables. Use 'ctx->hdev'
when calling img_hash_handle_queue() instead of 'tctx->hdev'.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c