From 141409fb208ef94de3b438eff2a87197714fbe65 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 2 Oct 2014 10:16:25 +0200 Subject: 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 Signed-off-by: Stephen Warren --- src/cbootimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.1