sys/config: Remove some dead code from conf_value_from_str
val_str cannot be NULL here due to early check at function begining.
@@ -130,14 +130,10 @@ conf_value_from_str(char *val_str, enum conf_type type, void *vp, int maxlen)
case CONF_INT16:
case CONF_INT32:
case CONF_BOOL:
- if (val_str) {
val = strtol(val_str, &eptr, 0);
if (*eptr != '\0') {
goto err;
}
- } else {
- val = 0;
- }
if (type == CONF_BOOL) {
if (val < 0 || val > 1) {
goto err;
