Minor style and documentation improvements

Co-authored-by: Gilles Peskine <gilles.peskine@arm.com>
Signed-off-by: Nicola Di Lieto <nicola.dilieto@gmail.com>
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 9076b32..a0d35ae 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -957,7 +957,7 @@
         if( ret != 0 )
         {
             /* Give the callback (if any) a chance to handle the extension */
-            if (cb && cb(crt, &extn_oid, is_critical, p, end_ext_octet) == 0)
+            if( cb != NULL && cb( crt, &extn_oid, is_critical, p, end_ext_octet ) == 0 )
                 continue;
 
             /* No parser found, skip extension */