Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm2_createprimary: 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 it makes no sense to have a gazillion different error codes for each situation, this just makes the code difficult to read for no gain. While being there, handle the cases for when getopt_long() finds that the option or arguments are not correct. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
- Loading branch information
1 parent
2b66941
commit 6758d14
Showing
1 changed file
with
17 additions
and
30 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