Message ID | c911486f7d8727c5264f3cb4142c26b6765eadec.1585944770.git.mirq-linux@rere.qmqm.pl (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | extensions and fixes | expand |
diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index a21e1a2673f8..887f5bb879e5 100644 --- a/drivers/power/supply/charger-manager.c +++ b/drivers/power/supply/charger-manager.c @@ -1728,7 +1728,6 @@ static int charger_manager_probe(struct platform_device *pdev) memcpy(cm->charger_psy_desc.properties, default_charger_props, sizeof(enum power_supply_property) * ARRAY_SIZE(default_charger_props)); - cm->charger_psy_desc.num_properties = psy_default.num_properties; /* Find which optional psy-properties are available */ fuel_gauge = power_supply_get_by_name(desc->psy_fuel_gauge);
num_properties is already copied earlier using memcpy(). Remove the duplicate. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> --- v3: initial version --- drivers/power/supply/charger-manager.c | 1 - 1 file changed, 1 deletion(-)