]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: fix a couple NULL vs IS_ERR() checks
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 31 Jul 2023 14:08:41 +0000 (17:08 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 8 Aug 2023 21:41:52 +0000 (17:41 -0400)
commit939390b203dde8a0176dbfa272dcb7bc54949baf
treee56938242303aadb44ab2dc5925299f0622c2747
parentd864bd0e21ad6ab901bc6365abc8c3dbebe3ad29
test: fix a couple NULL vs IS_ERR() checks

The x509_cert_parse() and pkcs7_parse_message() functions return error
pointers.  They don't return NULL.  Update the checks accordingly.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/lib/asn1.c