Message ID | 20221122133600.49897-3-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2205827wrr; Tue, 22 Nov 2022 05:43:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf6henEjOYJxDVxUcWPbFDYAHjNHE+5Xs7AgBCre2jf3ijHtUsTpZLuXpI4dkCXCy6NB6Ha1 X-Received: by 2002:a05:6402:294d:b0:467:6b55:3cf5 with SMTP id ed13-20020a056402294d00b004676b553cf5mr21366356edb.22.1669124621388; Tue, 22 Nov 2022 05:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124621; cv=none; d=google.com; s=arc-20160816; b=N+10fCNsE6RZqaZ5su+V3rcSYX7oO0rZS11AvveSpU3AzqDctDAqYRWyTKx57mHa24 nsHh1J5h2sNxoUMiERA0AU/aVAssqo4C2LzCLkvRtAWLH0+S7Ao/pldKmNfQmIGR2q+s DegCqf5FzWBq7hYmda+2DE0PXFsgGoLS+0Zmi0ZJF91dmHiIQJwjyH6KscXerohGdSb8 TZhpJL3YnAb525cRWs4rkuIFbx83+4IebB6lJsPjU0nK0tlYgFPOR4ARj/7+4goZY5sQ ya38hhz3o0EZVEbVQT/Y+Wu75bC4GGj+jU+zZusCnLwyiA12ZklfWXoJ9gZLh8HzXas6 EV0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JgxGEDGTchkK17aLeUsq5k3z34vL/hep5eG4Xe9bUlc=; b=izr83gizOF10/X9aFxLxJWSEJEoOhIB6j8c8n0ZMmRBfBdFvnzEPsA5suT0RwrS3QY gY6PvWorecZzxauP6i1w/Zgh6rQAGq0PfLloWsrcjCpxu8vIIEIjI7GRIMITmomt4wxa HEOb3mGFeqIsbRhuUz2H3qk9uOQ03e8BKjnp/LYAFLpfYxM2Qn9JWOX7R69ltJvz89R0 sKN9Gd02K+Gr2qtjfRU1Tg9c7wKYY+B9M6WwNo3ZMnN+rqbB2JODnnVSLoFSNEF9VpBP L5mgj8KTaoz4SfJyOSrL/Ya5nY+EfIikq1ZjZ544eiJEf3vNzljHPFRGQtapdERCM5zI Jc9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bsahibRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a056402430200b0045c97ee2b01si12384026edc.616.2022.11.22.05.43.17; Tue, 22 Nov 2022 05:43:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bsahibRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233823AbiKVNf6 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 08:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233422AbiKVNfo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 08:35:44 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D4C51C1D; Tue, 22 Nov 2022 05:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669124143; x=1700660143; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Yd43EAZ8yFG+UVVrj0IDOTJiGeWfCBxtGeYjjE4QLKQ=; b=bsahibRUZSCcBwHECal1SPvf8SRA4rF1yIOWDtOBTHX2bJCk36tN4edZ r8gK7YSeJgEJB6DjCnVCwHD2xQn7zszq4ooNPij+t7WmMtrZn/YxfvdJm kc2aFVoGYKgdByugmJBbBd4h5/U4QWdlaTjQT9UQw/+Lk7LrQittdhq0a ECkFQZbzjZl2jXj9VUBfWHSJ44xbdM117SLRsUHsSl7viL6lF3ZylQO1Z PNaDiMxyxBzC/b4dwK4BhYCValeGvBnCZWFncZ6Neb64RBn4xcSUImTRw 9w2Ckth6aTBthpRcCOCbjiAOR2n8FK2D8cRTc8Etg0j17wilaCm+iav3f Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="311442551" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="311442551" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 05:35:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="672484471" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="672484471" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 22 Nov 2022 05:35:38 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 834A5184; Tue, 22 Nov 2022 15:36:04 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Scally <djrscally@gmail.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org> Subject: [PATCH v4 3/4] device property: Rename goto label to be more precise Date: Tue, 22 Nov 2022 15:35:59 +0200 Message-Id: <20221122133600.49897-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221122133600.49897-1-andriy.shevchenko@linux.intel.com> References: <20221122133600.49897-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750204019114898740?= X-GMAIL-MSGID: =?utf-8?q?1750204019114898740?= |
Series |
[v4,1/4] device property: Get rid of __PROPERTY_ENTRY_ARRAY_EL*SIZE*()
|
|
Commit Message
Andy Shevchenko
Nov. 22, 2022, 1:35 p.m. UTC
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>
---
v4: new patch
drivers/base/property.c | 5 +++--
1 file 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; }