Skip to content

Conversation

@aidangarske
Copy link
Contributor

Fixed deadcode here

** CID 899688:       Control flow issues  (DEADCODE)
/tests/unit_tests.c: 318           in test_wolfTPM2_ST33_FirmwareUpgrade()


_____________________________________________________________________________________________
*** CID 899688:         Control flow issues  (DEADCODE)
/tests/unit_tests.c: 318             in test_wolfTPM2_ST33_FirmwareUpgrade()
312     #endif /* !WOLFTPM2_NO_WOLFCRYPT */
313     
314         rc = 0;
315     
316         wolfTPM2_Cleanup(&dev);
317     
>>>     CID 899688:         Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression ""Failed"" inside this statement: "printf("Test ST33 Firmware ...".
318         printf("Test ST33 Firmware Upgrade:\tAPI Availability:\t%s\n",
319             rc == 0 ? "Passed" : "Failed");
320     }
321     #endif /* WOLFTPM_ST33 || WOLFTPM_AUTODETECT */
322     #endif /* WOLFTPM_FIRMWARE_UPGRADE */

@dgarske dgarske merged commit 014b6a0 into wolfSSL:master Jan 28, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants