From e4750907e33898c83a4cb4959d2c64b207fa25d1 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 9 Oct 2015 15:53:29 +0200 Subject: [PATCH] Removed unused opportunity to call static create_image() with NULL for bootimg. Coverity CID 12569. --- libisofs/eltorito.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index 0fe20ca..75503e7 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -454,9 +454,7 @@ int create_image(IsoImage *image, const char *image_path, boot->platform_id = 0; /* 80x86 */ memset(boot->id_string, 0, sizeof(boot->id_string)); memset(boot->selection_crit, 0, sizeof(boot->selection_crit)); - if (bootimg) { - *bootimg = boot; - } + *bootimg = boot; return ISO_SUCCESS; }