X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fsunxi-spl-image-builder.c;h=a367f117740386c3d37028ad93f2b725caa9420a;hb=c590e62d3b6f6dd72eae1183614f919e3fd7ffcb;hp=d538a38813194a0e88df97f6f281c34ebada7636;hpb=1622559066d890f1b7622be0ede8a5d64de66ef3;p=u-boot diff --git a/tools/sunxi-spl-image-builder.c b/tools/sunxi-spl-image-builder.c index d538a38813..a367f11774 100644 --- a/tools/sunxi-spl-image-builder.c +++ b/tools/sunxi-spl-image-builder.c @@ -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':