Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm2_getmanufec: simplify execute_tool() error codes propagation
The tool main function that calls execute_tool() doesn't use the returned value, it only takes 0 as a succeeds value an everything else as an error. So lets just return consistently 1 as an error an 0 as a success, instead of returning a combination of -1 and value set in the return_val variable. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
- Loading branch information
1 parent
6758d14
commit cbb78fb
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters