summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-04-15 16:37:58 +0200
committerJakub Jelen <jjelen@redhat.com>2019-07-04 16:05:09 +0200
commit7e2cbd9e89508e9567378f358e0c6b1c82ea2103 (patch)
treed5f70ca246a224784f0dae0b0e002d5edd76fa2a /src
parent7fb171cdb84ae80e170587be97555a63986cd9f3 (diff)
Drop bogus checks not to confuse static analysis checkers
The cac_delete_*_applet_private() functions already handle the NULL arguments Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/cac.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cac.c b/src/cac.c
index e981e66..01ec104 100644
--- a/src/cac.c
+++ b/src/cac.c
@@ -1030,8 +1030,7 @@ cac_new_pki_applet_private(int i, const unsigned char *cert,
return applet_private;
failure:
- if (applet_private)
- cac_delete_pki_applet_private(applet_private);
+ cac_delete_pki_applet_private(applet_private);
return NULL;
}
@@ -1760,9 +1759,7 @@ cac_new_ccc_applet_private(int cert_count)
return applet_private;
failure:
- if (applet_private) {
- cac_delete_ccc_applet_private(applet_private);
- }
+ cac_delete_ccc_applet_private(applet_private);
return NULL;
}