software node: clean up property_copy_string_array()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Oct 2019 20:02:23 +0000 (13:02 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Nov 2019 22:18:10 +0000 (23:18 +0100)
commit75dd63c968d8e91707d74845ccb96bda3664cdaa
tree4a781a4f3a093af71fa11ef167449f6004104e2f
parentb871160fbc61d8cd43440b3903d402e90e28e321
software node: clean up property_copy_string_array()

Because property_copy_string_array() stores the newly allocated pointer in the
destination property, we have an awkward code in property_entry_copy_data()
where we fetch the new pointer from dst.

Let's change property_copy_string_array() to return pointer and rely on the
common path in property_entry_copy_data() to store it in destination structure.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/swnode.c