diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2014-10-02 10:16:25 +0200 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2014-10-02 17:07:09 -0600 |
commit | 141409fb208ef94de3b438eff2a87197714fbe65 (patch) | |
tree | da487ccb5eba3aa848b895dfdd34d4f8f494f2e1 | |
parent | 11eeab462ad4b14f3bab5e510f4a2412ea45cb44 (diff) | |
download | nvidia-cbootimage-141409fb208ef94de3b438eff2a87197714fbe65.tar.gz |
cbootimage: simplify code
Testing for e == 0 after exiting the function in any other
case a couple of lines earlier is useless.
Found-by: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | src/cbootimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cbootimage.c b/src/cbootimage.c index 5f746e3..62328b4 100644 --- a/src/cbootimage.c +++ b/src/cbootimage.c @@ -211,7 +211,7 @@ main(int argc, char *argv[]) if (enable_debug) { /* Debugging information... */ - printf("bct size: %d\n", e == 0 ? context.bct_size : -1); + printf("bct size: %d\n", context.bct_size); } /* Open the raw output file. */ |