@@ -878,8 +878,6 @@ static int bq256xx_set_charger_property(struct power_supply *psy,
switch (prop) {
case POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT:
ret = bq->chip_info->bq256xx_set_iindpm(bq, val->intval);
- if (ret)
- return ret;
break;
case POWER_SUPPLY_PROP_STATUS:
@@ -887,32 +885,22 @@ static int bq256xx_set_charger_property(struct power_supply *psy,
case POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE:
ret = bq->chip_info->bq256xx_set_vbatreg(bq, val->intval);
- if (ret)
- return ret;
break;
case POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT:
ret = bq->chip_info->bq256xx_set_ichg(bq, val->intval);
- if (ret)
- return ret;
break;
case POWER_SUPPLY_PROP_PRECHARGE_CURRENT:
ret = bq->chip_info->bq256xx_set_iprechg(bq, val->intval);
- if (ret)
- return ret;
break;
case POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT:
ret = bq->chip_info->bq256xx_set_iterm(bq, val->intval);
- if (ret)
- return ret;
break;
case POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT:
ret = bq->chip_info->bq256xx_set_vindpm(bq, val->intval);
- if (ret)
- return ret;
break;
default: