summaryrefslogtreecommitdiffstats
path: root/drivers/base/property.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-11-22 15:35:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-23 19:35:31 +0100
commit4d57b4f215e8ba86c36540eaccd3b17bc5ee39c0 (patch)
tree9a3db7d2a5f55dd1442e876916ef398c9cb60cf7 /drivers/base/property.c
parentc6c76563bd13871739539e20fd3116159e491f5b (diff)
downloadlinux-stable-4d57b4f215e8ba86c36540eaccd3b17bc5ee39c0.tar.gz
linux-stable-4d57b4f215e8ba86c36540eaccd3b17bc5ee39c0.tar.bz2
linux-stable-4d57b4f215e8ba86c36540eaccd3b17bc5ee39c0.zip
device property: Rename goto label to be more precise
In the fwnode_property_match_string() the goto label out has an additional task. Rename the label to be more precise on what is going to happen if goto it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20221122133600.49897-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/property.c')
-rw-r--r--drivers/base/property.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/property.c b/drivers/base/property.c
index f7b5aa8fcf28..ed74083c179d 100644
--- a/drivers/base/property.c
+++ b/drivers/base/property.c
@@ -482,12 +482,13 @@ int fwnode_property_match_string(const struct fwnode_handle *fwnode,
ret = fwnode_property_read_string_array(fwnode, propname, values, nval);
if (ret < 0)
- goto out;
+ goto out_free;
ret = match_string(values, nval, string);
if (ret < 0)
ret = -ENODATA;
-out:
+
+out_free:
kfree(values);
return ret;
}