Message ID | 58b984a1144b0db1dd6bdbcbbfbac69326f02dd1.1697186772.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1748269vqb; Fri, 13 Oct 2023 01:49:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdHlU/0PPzvxsjRv2u3KXnWLKImjc1Ot7psw0ZlQwtQkvpoyCGEuZtE8z+95riQor6sB7y X-Received: by 2002:a05:6830:4902:b0:6b9:b987:1337 with SMTP id eq2-20020a056830490200b006b9b9871337mr31298619otb.1.1697186942078; Fri, 13 Oct 2023 01:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697186942; cv=none; d=google.com; s=arc-20160816; b=noNkw4ryFyKVNGlvcWrtlR4BdkWfMbMVs/ZoNEgwXQus1hpHGG/koublusymccnt06 A2Z61c7o2FEUzQJtbCOQHu+GFk1bOf7MP0jioXiFT96XGBvpBvRE2QWsLlazfjW4gXVk kcTAJ/QV8EPtXPsEksL6WFSr3Ksmwv9U2PctL26z5Mes/WBrHTWJndMsXvG53K2KALrR KYQT6HWdePv9XpuFvLOIex18SNSYZOff1753+rtefQ5cO4LIIYHryP7KE5gpo9k4FcTU LMjarEl7O00/snkIRtpcsVXKhoSvbgBqscLlr9yPl6dUPSmRMnHmEwUDI8KfjUDp2ENG Jr3A== 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=9sgnTvvfVpiAPPJ8fiCTAGKK94xzxBt3csYQrYp95xs=; fh=gqvArZzT56mpbWZPbgkVieHv+0GTgVLQCUEWHP+2lYM=; b=dEoDTrLVy84Y11DCfY2JaZRtV5f2pJgCIivb2weRPNFUPsk0GUz9WFBxRJb8M2rbG6 qFXMVxp9Qqnlfw+UFJKlsWtI1+uOmiVwaiVYTHTMGOnsSc7oBjFSqWrK2KoQkzYuEQs1 TfuAF3Hy0QxTfWWhcuu0wNXax1eF9uY8HHwRo6xLaU0WnEaO3F7ceqb8VXWEeDKilQkn riam5+1ks35J0OVgsdVbgnZNFXRiX7dCoGtygT/Q8yayZWivnUyOKRXRc4fE+6QoSfgh RZbXayEsAzj/PXG0dN61UgGpnwou6NZ4RFdHKXZRaGBfbI3vPJCYIyLiqGaA3PCXNviq Jd3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2ylfw32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t10-20020a6549ca000000b0059b64b153f6si4249892pgs.845.2023.10.13.01.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2ylfw32; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6594D80BE2D9; Fri, 13 Oct 2023 01:49:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjJMIs5 (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 04:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjJMIsz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 04:48:55 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F265C0 for <linux-kernel@vger.kernel.org>; Fri, 13 Oct 2023 01:48:53 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ca052ec63bso2050075ad.1 for <linux-kernel@vger.kernel.org>; Fri, 13 Oct 2023 01:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697186933; x=1697791733; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9sgnTvvfVpiAPPJ8fiCTAGKK94xzxBt3csYQrYp95xs=; b=R2ylfw32owgpzXLev8WI4JbQpc3yML7eAnkdXT5dDeEAebPG0A/7OBW7J/dELPNu2w mJPUnQnN9+p6WFmju7Ewbaadn0kh1hsG+x9k/4dhf5zHJjQhJ+Qay8p8av5bpGpdM8Cx vM649EOJpmNOx3KT5sN1lBRqEFJSGLoLmBANaJfhJMjyg1CPMWB2U8Epyl4gzPJjRpNB PsTNY9980KC3u+d2e2ZSni/xHMJ1zJUrObOExCefmgzo38lj8R3CcK9OzW81CBRguljO dv5RQVWjKrKXc+DgATL9uDr0REFwOLN9GuRkI/RmNGaEgYZgv+rjTI06EtTj5Fxg62ta Ob8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697186933; x=1697791733; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9sgnTvvfVpiAPPJ8fiCTAGKK94xzxBt3csYQrYp95xs=; b=udAbTb1lC4LOITVQLRd4XSU92xMRfGbRpXshOmNBRdhOCBZqoN6Hy4Jhv9n9zSmP9i jGRVmjs8/wtMLgMRC7VKgmM9gkLxIfBAPrKEcTHu9AWIZAP0QJFAeoikOmczZVW3alpC +dnMWD49Qjx3nX2vrIcN9SdnVePlDuIRwVzdNY4gtxAUXO+BKJzprf0hKu1APSoa1X37 DgH+QZAWHd8mTztFBooidEpjPIKDHLUPpEBNrScDhpC4xLF8nAVQXXL4RBokRorbtIob dRV/RxpFk6kgUoMymslGjC6x2NqLClJXqELvy+TGW052Kwn9I5sUIZdoKtz7sptxdOps oKGg== X-Gm-Message-State: AOJu0YxKM6/wsA6AvLCl+HhDfxWR3usGENYHmt25IleykdRh8v2KGu5R zdcNA5V9KsXdWRc1RS5WQOkh3Q== X-Received: by 2002:a17:902:e84d:b0:1c5:ec97:1718 with SMTP id t13-20020a170902e84d00b001c5ec971718mr30704438plg.6.1697186932843; Fri, 13 Oct 2023 01:48:52 -0700 (PDT) Received: from localhost ([122.172.80.14]) by smtp.gmail.com with ESMTPSA id u9-20020a170902a60900b001c06dcd453csm3323741plq.236.2023.10.13.01.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:48:51 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>, Stephen Boyd <sboyd@kernel.org> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] OPP: Fix formatting of if/else block Date: Fri, 13 Oct 2023 14:18:37 +0530 Message-Id: <58b984a1144b0db1dd6bdbcbbfbac69326f02dd1.1697186772.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: <cover.1697186772.git.viresh.kumar@linaro.org> References: <cover.1697186772.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:49:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779629494866056528 X-GMAIL-MSGID: 1779629494866056528 |
Series | OPP: Minor cleanups | |
Commit Message
Viresh Kumar
Oct. 13, 2023, 8:48 a.m. UTC
Add {} to both if else blocks or none.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/opp/of.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, 13 Oct 2023 at 10:48, Viresh Kumar <viresh.kumar@linaro.org> wrote: > > Add {} to both if else blocks or none. > > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Kind regards Uffe > --- > drivers/opp/of.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/opp/of.c b/drivers/opp/of.c > index ae5c405bbf9a..85e2af3d6a49 100644 > --- a/drivers/opp/of.c > +++ b/drivers/opp/of.c > @@ -208,9 +208,9 @@ static void _opp_table_alloc_required_tables(struct opp_table *opp_table, > mutex_lock(&opp_table_lock); > list_add(&opp_table->lazy, &lazy_opp_tables); > mutex_unlock(&opp_table_lock); > - } > - else > + } else { > _update_set_required_opps(opp_table); > + } > > goto put_np; > > -- > 2.31.1.272.g89b43f80a514 >
diff --git a/drivers/opp/of.c b/drivers/opp/of.c index ae5c405bbf9a..85e2af3d6a49 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -208,9 +208,9 @@ static void _opp_table_alloc_required_tables(struct opp_table *opp_table, mutex_lock(&opp_table_lock); list_add(&opp_table->lazy, &lazy_opp_tables); mutex_unlock(&opp_table_lock); - } - else + } else { _update_set_required_opps(opp_table); + } goto put_np;