device property: Rename goto label to be more precise
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Nov 2022 13:35:59 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Nov 2022 18:35:31 +0000 (19:35 +0100)
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>
drivers/base/property.c

index f7b5aa8fcf28350e50af4abae25492f18b891435..ed74083c179d88ae1c520dfeb9647dd70b2e93ce 100644 (file)
@@ -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;
 }