[PATCH v3 01/11] power: charger-manager: remove duplicate assignment
From: MichaÅ MirosÅaw
Date: Fri Apr 03 2020 - 16:20:34 EST
num_properties is already copied earlier using memcpy().
Remove the duplicate.
Signed-off-by: MichaÅÂMirosÅaw <mirq-linux@xxxxxxxxxxxx>
---
v3: initial version
---
drivers/power/supply/charger-manager.c | 1 -
1 file changed, 1 deletion(-)
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);
--
2.20.1