]> git.sur5r.net Git - u-boot/blobdiff - tools/sunxi-spl-image-builder.c
dtoc: Update tests to write failures to /tmp
[u-boot] / tools / sunxi-spl-image-builder.c
index d538a38813194a0e88df97f6f281c34ebada7636..a367f117740386c3d37028ad93f2b725caa9420a 100644 (file)
@@ -433,7 +433,7 @@ int main(int argc, char **argv)
                        break;
                case 'c':
                        info.ecc_strength = strtol(optarg, &endptr, 0);
-                       if (endptr || *endptr == '/')
+                       if (*endptr == '/')
                                info.ecc_step_size = strtol(endptr + 1, NULL, 0);
                        break;
                case 'p':