Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1909065rdb; Tue, 3 Oct 2023 05:07:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElc30tEXZxmpS6otxY3xoetiP+jwCgKyaOODdLmhDPLBCUb54d6tiAzzHgG/PgORWdQkwT X-Received: by 2002:a05:6a21:19c:b0:160:c502:6d8b with SMTP id le28-20020a056a21019c00b00160c5026d8bmr15364815pzb.7.1696334820654; Tue, 03 Oct 2023 05:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696334820; cv=none; d=google.com; s=arc-20160816; b=tvGEqzIh+W89mQc9ZhDE5UuAzmifzfhFQMIoGn7x9dRYdTqCjMKY1VKrgyGqo9JomE 7lB+H6rK/rAWd613XiO5lsuT8wBfO31jPLtTpmyUpNyAMYmQK5VG6Ll1wYadmjnS4QYg oo5fttdE4PqRJDoRw95dev/i/53UcclhGyGvbnea9ZN4tZRb82QsbkYb7CMulllLdhf0 S0zRjee9VSHQIps2V0Mn7vc+AE4rk0JPy2taiKuQwsul6n3ox7JmCLx3RXuzOF19tLSt 8YtqbkQRkIfh9crNGBb9D0yDPpvyb6oWwOjgJMt76UHwzWNcytNFS49NN962MI0SsyYp QTww== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yxvcfVZGl6bIsbyirxkxZ1WXM9BDdgRnewiQzsUjp0I=; fh=qP8qLF3j7wnujaz3Feq/XEJefFk7dyjUOy2+dYHoHms=; b=we4lfezSAC05SuGG97pRKog4eCPftlux/16CX82WBE/Sy01HrosW7e9XiZYJb9tAC8 zaJB9JHCw5K5Z80iycII6/tPC2a0N1saPV8CljKNBQWeIElfe3zSpjDT2ib6KZfs5pb1 A9PynU7K64CyuCk3o+NLwp8Vm1W0PqbW4D9Uufhp04qANASwTREOz8bHyw4g0b5glRO+ Ewdt0scAEOvbsQbwbrkMHT8GWBU7poMJGe02W1KuCmqe41W0DHfDWBPq3RDJ8IBmWOg1 OvyTOJTXQXwfxzEPNvsCZvJeEtkIJAH2woMhmgKHHdg4WOncH/kmngrA5qW0TcWF7T0R HD4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDXhjRBm; 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=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h3-20020a655183000000b005740b47241csi1207816pgq.804.2023.10.03.05.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 05:07:00 -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=@intel.com header.s=Intel header.b=NDXhjRBm; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CCE80801CBC7; Tue, 3 Oct 2023 05:06:59 -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 S231982AbjJCMG5 (ORCPT + 99 others); Tue, 3 Oct 2023 08:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbjJCMG5 (ORCPT ); Tue, 3 Oct 2023 08:06:57 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB8DAA9; Tue, 3 Oct 2023 05:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696334812; x=1727870812; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TjniIZhzKzC35iBW82KnmeoLWBQCp+HfnnP4c9zFzAQ=; b=NDXhjRBm5KN4eh3IQf4g8OL2rNrv+uU6a/F2s1sXAiKCkqghsOo5AeXj lRAQyxYOrqPSgGCDcEVSJy3oR8+SN6VB2OXZiPo4bhBqJ5NaRv003R2bA SUygzhf2XlnBiASh6WqYdZtnQs5d3qhuhwfn2N/1XBx6uePJOhmjKiOwd 9wGPwdi0gIf+A0csv5kHBUiSOKG7o/Lr26WQBM/wM/SeZAoal4MxX9IpH 3DPHxfQ/07ksCJB8vhjSqD3P16kiv6Jx+hET/U1ykTF0ngBcKycXIrihr TjAR48IMULJeeUIBgEOKeOM4CzSITXGg+ZOI4RLJ8o+mAL8z18TSBQCzh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="380135669" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="380135669" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 05:06:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="821234279" X-IronPort-AV: E=Sophos;i="6.03,197,1694761200"; d="scan'208";a="821234279" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 03 Oct 2023 05:06:50 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 92E1718A0; Tue, 3 Oct 2023 15:06:49 +0300 (EEST) From: Andy Shevchenko To: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH v1 1/1] pinctrl: core: Remove unneeded {} around one line conditional body Date: Tue, 3 Oct 2023 15:06:48 +0300 Message-Id: <20231003120648.2838047-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: 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]); Tue, 03 Oct 2023 05:07:00 -0700 (PDT) The one line conditional body doesn't require {} surrounding it. Remove unneeded {}. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index e2f7519bef04..5a15583bf4ae 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -445,9 +445,9 @@ struct pinctrl_dev *pinctrl_find_and_add_gpio_range(const char *devname, * it has not probed yet, so the driver trying to register this * range need to defer probing. */ - if (!pctldev) { + if (!pctldev) return ERR_PTR(-EPROBE_DEFER); - } + pinctrl_add_gpio_range(pctldev, range); return pctldev; -- 2.40.0.1.gaa8946217a0b