}
ret = regcache_init(map, config);
- if (ret < 0)
+ if (ret != 0)
goto err_range;
regmap_debugfs_init(map, config->name);
map->work_buf = orig_work_buf;
- if (ret < 0)
+ if (ret != 0)
return ret;
}
if (range) {
ret = _regmap_select_page(map, ®, range,
val_len / map->format.val_bytes);
- if (ret < 0)
+ if (ret != 0)
return ret;
}
range = _regmap_range_lookup(map, reg);
if (range) {
ret = _regmap_select_page(map, ®, range, 1);
- if (ret < 0)
+ if (ret != 0)
return ret;
}
if (range) {
ret = _regmap_select_page(map, ®, range,
val_len / map->format.val_bytes);
- if (ret < 0)
+ if (ret != 0)
return ret;
}