fsverity: simplify error handling in verify_data_block()
authorEric Biggers <ebiggers@google.com>
Sun, 4 Jun 2023 02:23:12 +0000 (19:23 -0700)
committerEric Biggers <ebiggers@google.com>
Sun, 4 Jun 2023 12:56:11 +0000 (05:56 -0700)
commit13e2408d02dd12a3b46bf8a29b3ae4f6119fc520
tree2928a9e84be2405df60d6d916836b4f78d907f9d
parentd1f0c5ea04cd0a93309de0246278f0b22394692d
fsverity: simplify error handling in verify_data_block()

Clean up the error handling in verify_data_block() to (a) eliminate the
'err' variable which has caused some confusion because the function
actually returns a bool, (b) reduce the compiled code size slightly, and
(c) execute one fewer branch in the success case.

Link: https://lore.kernel.org/r/20230604022312.48532-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/verity/verify.c