diff mbox series

[ima-evm-utils,3/3] Remove unnecessary NULL pointer test

Message ID 20210716140531.945013-3-zohar@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series [ima-evm-utils,1/3] Fix out-of-bounds read | expand

Commit Message

Mimi Zohar July 16, 2021, 2:05 p.m. UTC
Remove the "Logically dead code (DEADCODE)" as reported by Coverity.

Fixes: 9c79b7de7231 ("ima-evm-utils: support verifying the measurement list using multiple keys")
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
---
 src/libimaevm.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/src/libimaevm.c b/src/libimaevm.c
index 261712717368..925c3cccf964 100644
--- a/src/libimaevm.c
+++ b/src/libimaevm.c
@@ -392,8 +392,6 @@  void init_public_keys(const char *keyfiles)
 	keyfiles_free = tmp_keyfiles;
 
 	while ((keyfile = strsep(&tmp_keyfiles, ", \t")) != NULL) {
-		if (!keyfile)
-			break;
 		if ((*keyfile == '\0') || (*keyfile == ' ') ||
 		    (*keyfile == '\t'))
 			continue;