X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Fmkexynosspl.c;h=53122b8614a08ff39625e926204f43a7a182da08;hb=2702646bc083c7916aedc8c5eef81948c5c3864f;hp=32b786c724b205a5097fd2ece9291710b922926e;hpb=4b0561d84198f8d696fd51cfc27aeac8c7482a8c;p=oweals%2Fu-boot.git diff --git a/tools/mkexynosspl.c b/tools/mkexynosspl.c index 32b786c724..53122b8614 100644 --- a/tools/mkexynosspl.c +++ b/tools/mkexynosspl.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Samsung Electronics - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -110,7 +109,7 @@ int main(int argc, char **argv) } ofd = open(argv[of_index], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); - if (ifd < 0) { + if (ofd < 0) { fprintf(stderr, "%s: Can't open %s: %s\n", prog_name, argv[of_index], strerror(errno)); exit(EXIT_FAILURE);