]> www.infradead.org Git - users/hch/dma-mapping.git/commit
crypto: testmgr - Hide ENOENT errors better
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 6 Oct 2024 01:24:56 +0000 (09:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Oct 2024 09:03:35 +0000 (17:03 +0800)
commit6318fbe26e67f9c27a1917fe63936b0fc6000373
tree12bb530fe00f819580283bac1213e9c565524bec
parentb81e286ba154a4e0f01a94d99179a97f4ba3e396
crypto: testmgr - Hide ENOENT errors better

The previous patch removed the ENOENT warning at the point of
allocation, but the overall self-test warning is still there.

Fix all of them by returning zero as the test result.  This is
safe because if the algorithm has gone away, then it cannot be
marked as tested.

Fixes: 4eded6d14f5b ("crypto: testmgr - Hide ENOENT errors")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c