diff --git a/drivers/base/property.c b/drivers/base/property.c index f3f6d167f3f1f015fec8e36ede66b7e8e274338f..37a7bb7b239d06fbe285c553dbe470375e4ad877 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -27,9 +27,10 @@ */ void device_add_property_set(struct device *dev, struct property_set *pset) { - if (pset) - pset->fwnode.type = FWNODE_PDATA; + if (!pset) + return; + pset->fwnode.type = FWNODE_PDATA; set_secondary_fwnode(dev, &pset->fwnode); } EXPORT_SYMBOL_GPL(device_add_property_set);