Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2980091rwb; Sat, 29 Jul 2023 20:05:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHV0658OFi7F9awO8GsyXTD9RCVC1OZDKCXBo+fiFvx8QGq9AxardgkSiQIV0X9ACF99och X-Received: by 2002:a17:902:d2c9:b0:1bb:3406:a612 with SMTP id n9-20020a170902d2c900b001bb3406a612mr5927574plc.57.1690686303663; Sat, 29 Jul 2023 20:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690686303; cv=none; d=google.com; s=arc-20160816; b=uzWxgXWU4l55G68YetiOaAj5xDJQ58vOCN1SqccyYIINmsQveiP2OysbV7PsEKFcV9 ZBIJqPUu6QMVRbVSFrfBOQO7lw25WeWmiWS366NlMAyw1CSxYQaa0HtTWea6I+5BSMF5 1sFSN+hplo9krLIWMcM2L4dSYSeIOKLAyNhz02zNadMPF+oqjRixHZtDYU2B41XCIxKN x86qUfb7W9DFVTL0/0qQmW7fVjBapl3kV8HXkQKvbPlrpTU037QoaT27N9jcLrW6/bwh 5eqbo1MBTKB7vkCyjSbB2SqNxjG2X9thz353vV9/ljd6iualYjZCJjkCxla6WrvAUA5t EwYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LlW+cQQGnDFsZet3BfkSNICkpRh7cokgHOaPq9egyYM=; fh=jUXbiA7VnbSZM7mBx03id3DGvZgMWCr4XoRuJVrwyNg=; b=hfnF3+8P9w9MPSe2oPMMihIPOWMiYp6i4Va6Cmlvq+BKI8xwlkTJyrHi1ccXBuZ9l+ 7XENCmcv+INVOc7XjMQpM5MPubbYVFJMHIoLtpvswVoDlxcSXjkY9CEX2V+CfhTJpwMb qdiMZyB6sh6RX2QI8OgMEB0wq93EQD6gjOGmqSHfnm48txq1+E4EoXntSJyjFYCLJ56x UPuEYJil/8YehG/q82Z7a3lkJlWhXGkxpOfKwZYKJ28PR4MkEKy/1xpapCNh5+foQX6q gaURC6An+L4Jqdha+9TaxaFuCVCzADedWPSrs5DLFY2yh+/FR7BBBPa+quwyYV20xyFJ 1C7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f5X6nfEM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y71-20020a638a4a000000b00563ddcdb306si1786591pgd.384.2023.07.29.20.04.51; Sat, 29 Jul 2023 20:05:03 -0700 (PDT) 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=f5X6nfEM; 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 S229613AbjG3CS5 (ORCPT + 99 others); Sat, 29 Jul 2023 22:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjG3CSy (ORCPT ); Sat, 29 Jul 2023 22:18:54 -0400 Received: from mgamail.intel.com (unknown [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B2572D47; Sat, 29 Jul 2023 19:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690683534; x=1722219534; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EQW1AUMVIHfkGxuTUZ5EIEjw4SLFZTzHQ6Y4u2cWtno=; b=f5X6nfEMXWBYMfRLK3zOH6CZ9RI8HUJhcHizmtXCOm2I/G2R7NrC1sex M4UZJ6do/7EmxE319kYMF4n7VK5R3Izt+RTAr1C8US+EibhOecWRVWycF wrZ6AB2s58hnCxwg8XX2a04HmASOThy2GAa6SSeWYRVqGNl2kNKIbZuWp XXfBjtNwDsPYkhw3Rp7rYPfVj2zUlmJqib65+z1Tip7wifHhWCKQgxXiz fJC/6E3pUYyeF8ASwLpXyZqmIBZCLncCljG9wRpKOr+9eei7gWDGbYwj1 Pv4PYZQZVd2YSIahpDiGNR0UcAq+CLG/atZXu+267CoecK9OIcwOj89lQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10786"; a="399752508" X-IronPort-AV: E=Sophos;i="6.01,240,1684825200"; d="scan'208";a="399752508" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2023 19:18:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10786"; a="974492429" X-IronPort-AV: E=Sophos;i="6.01,240,1684825200"; d="scan'208";a="974492429" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.212.203.2]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2023 19:18:53 -0700 Date: Sat, 29 Jul 2023 19:18:51 -0700 From: Alison Schofield To: Raghu Halharvi Cc: linux-cxl@vger.kernel.org, ira.weiny@intel.com, bwidawsk@kernel.org, dan.j.williams@intel.com, vishal.l.verma@intel.com, linux-kernel@vger.kernel.org, Dave Jiang Subject: Re: [PATCH v7 2/2] cxl/region: Remove else after return statement Message-ID: References: <20230726073421.2452-1-raghuhack78@gmail.com> <20230726073421.2452-3-raghuhack78@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230726073421.2452-3-raghuhack78@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, Jul 26, 2023 at 07:34:21AM +0000, Raghu Halharvi wrote: > Issue found with checkpatch > > The else section here is redundant after return statement, removing it. > Sanity and correctness is not affected due to this fix. > > Signed-off-by: Raghu Halharvi > Reviewed-by: Dave Jiang > Reviewed-by: Vishal Verma > Reviewed-by: Ira Weiny Reviewed-by: Alison Schofield > --- > drivers/cxl/core/region.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c > index e115ba382e04..bfd3b13dd2c1 100644 > --- a/drivers/cxl/core/region.c > +++ b/drivers/cxl/core/region.c > @@ -133,11 +133,11 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr) > &cxlr->dev, > "Bypassing cpu_cache_invalidate_memregion() for testing!\n"); > return 0; > - } else { > - dev_err(&cxlr->dev, > - "Failed to synchronize CPU cache state\n"); > - return -ENXIO; > } > + > + dev_err(&cxlr->dev, > + "Failed to synchronize CPU cache state\n"); > + return -ENXIO; > } > > cpu_cache_invalidate_memregion(IORES_DESC_CXL); > -- > 2.39.2 >