[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c911486f7d8727c5264f3cb4142c26b6765eadec.1585944770.git.mirq-linux@rere.qmqm.pl>
Date: Fri, 03 Apr 2020 22:20:30 +0200
From: Michał Mirosław <mirq-linux@...e.qmqm.pl>
To: Andrey Smirnov <andrew.smirnov@...il.com>,
Guenter Roeck <linux@...ck-us.net>,
Sebastian Reichel <sebastian.reichel@...labora.com>
Cc: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org
Subject: [PATCH v3 01/11] power: charger-manager: remove duplicate assignment
num_properties is already copied earlier using memcpy().
Remove the duplicate.
Signed-off-by: Michał Mirosław <mirq-linux@...e.qmqm.pl>
---
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
Powered by blists - more mailing lists