power: charger-manager: clarify num_properties starting value
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Fri, 1 May 2020 14:30:43 +0000 (16:30 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 1 May 2020 14:48:02 +0000 (16:48 +0200)
commit97ed79f4931964069fc3be7ae5122c3026273f9e
tree270be85cf75f9fdfcb9ec8c592684af929a261e5
parentb0e4aa97ea4b58881b85697a6f5628d1839d8e59
power: charger-manager: clarify num_properties starting value

Initialize num_properties with length of the copied array instead
of relying on previously memcpy'd value. This makes it clear how
the array and the counter are related.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c