mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
software node: Allow node creation without properties
Software nodes are not forced to have device properties. Adding check to property_entries_dup() to make it possible to create software nodes that don't have any properties. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
f2c7c76c5d
commit
a79969868a
1 changed files with 3 additions and 0 deletions
|
@ -383,6 +383,9 @@ property_entries_dup(const struct property_entry *properties)
|
||||||
int i, n = 0;
|
int i, n = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!properties)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
while (properties[n].name)
|
while (properties[n].name)
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue