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>
This commit is contained in:
Patrick Georgi
2014-10-02 10:16:25 +02:00
committed by Stephen Warren
parent 11eeab462a
commit 141409fb20

View File

@@ -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. */