fdt: Show a runtime warning based on devicetree source
[platform/kernel/u-boot.git] / tools / sunxi-spl-image-builder.c
index d538a38..a367f11 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':