Re: [PATCH] test: fix a couple NULL vs IS_ERR() checks

2023-08-08 Thread Tom Rini
On Mon, Jul 31, 2023 at 05:08:41PM +0300, Dan Carpenter wrote: > 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 > Reviewed-by: Simon Glass Applied to u-boot/next, thank

Re: [PATCH] test: fix a couple NULL vs IS_ERR() checks

2023-07-31 Thread Simon Glass
Hi Dan, On Mon, 31 Jul 2023 at 08:08, Dan Carpenter wrote: > > 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 > --- > test/lib/asn1.c | 4 ++-- > 1 file changed, 2 inser

[PATCH] test: fix a couple NULL vs IS_ERR() checks

2023-07-31 Thread Dan Carpenter
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 --- test/lib/asn1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/asn1.c b/test/lib/asn1.c ind