]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv/purgatory: return bool from verify_sha256_digest
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 7 Jun 2026 02:17:51 +0000 (20:17 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 7 Jun 2026 02:17:51 +0000 (20:17 -0600)
commit1e01a786a904274d308a99b00a0f20e0d288eeff
tree4098e718384cea868a998eb897045ca1fe18a944
parent15b4155138505669d3d43d7692459ee8ea2a86e7
riscv/purgatory: return bool from verify_sha256_digest

Change the function's return type from int to bool and return the result
of memcmp() directly to simplify the code.  While at it, cast ->start to
'const u8 *' to better match the expected type.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260509073850.44595-3-thorsten.blum@linux.dev
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/purgatory/purgatory.c