fip_create: Fix exit status for missing output filename
authorBrendan Jackman <brendan.jackman@arm.com>
Mon, 25 Apr 2016 07:35:35 +0000 (15:35 +0800)
committerBrendan Jackman <brendan.jackman@arm.com>
Wed, 27 Apr 2016 07:06:33 +0000 (15:06 +0800)
Change-Id: I0d298eea9eaf47121c87637c7395e5d9868aa272

tools/fip_create/fip_create.c

index 7bce348a017ed782d20b30dff48118485b75f4ca..48cb3f6d9d92469115a246e49babf7d53577e01c 100644 (file)
@@ -811,7 +811,7 @@ int main(int argc, char **argv)
        if (fip_filename == NULL) {
                printf("ERROR: Missing FIP filename\n");
                print_usage();
-               return 0;
+               return EINVAL;
        }
 
        /* Unpack images from FIP always takes precedence over packaging. In