summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/jedutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/jedutil.cpp')
-rw-r--r--src/tools/jedutil.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/tools/jedutil.cpp b/src/tools/jedutil.cpp
index b500e689785..49b5d00cd38 100644
--- a/src/tools/jedutil.cpp
+++ b/src/tools/jedutil.cpp
@@ -7429,19 +7429,9 @@ static int command_convert(int argc, char *argv[])
/* read the binary data */
err = jedbin_parse(srcbuf, srcbuflen, &jed);
-
- if (err == JEDERR_INVALID_DATA)
- {
- fprintf(stderr, "Fatal error: Invalid binary JEDEC file\n");
- free(srcbuf);
- return 1;
- }
-
- if (jed.binfmt == DATAIO) // DATAIO is detected and not supported yet, it has swapped inverted/non-inverted line fuses
+ switch (err)
{
- fprintf(stderr, "Fatal error: Unsupported DATAIO PLA format detected\n");
- free(srcbuf);
- return 1;
+ case JEDERR_INVALID_DATA: fprintf(stderr, "Fatal error: Invalid binary JEDEC file\n"); free(srcbuf); return 1;
}
/* print out data */