Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4399340rwo; Tue, 25 Jul 2023 05:42:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlUz1DMWubGArnjQ2ofY+0IyH+7zbcSnAliFe2Ap0BPbB1LcmwgCV6nxQO23We4t5Vv0wr X-Received: by 2002:a17:906:59:b0:994:54e9:692c with SMTP id 25-20020a170906005900b0099454e9692cmr14113180ejg.1.1690288971610; Tue, 25 Jul 2023 05:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690288971; cv=none; d=google.com; s=arc-20160816; b=j9egDpciJ6kmtg0F0NFAHhXh2ImP8oS6B71x7FgGh4eUl+6lUAnmZYPyBTn6jtOgvO hB2pYaZN1k5A3OzSYLkYicZ3e41Z+h66FynLnxivznQj0Od2FFcRiR4D5jilxrT2PlHC dkJCH/Q+1Cn4GiMSTXBhfSo3NeEBNFETRXKRA7FRsGyR2Aj1RpatfFItezgxnru9dvfI cc0guqzIH/Wovtkhjcz2xKitLOPZvH4YSkawdDuUZ4Kb9NDO1cvxP1XNQj6FlIOK4q2C zmg7XMA6WGUwKHZBm5vhG99BOV29/Em3OoURTwLQcVy2e1vMddzAD+tUhxFckr5HVFnX H5+w== 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=BKgU9gs3SrD9kqMiFBWOg/5RTIIycH4Kj6dCZUirkJM=; fh=K9PejV4D6nNnIBGbiCts/AM1Q05xsLRlC7vT8/dg8I0=; b=gZP/rmxT5rkzM+qNYcZcnX9on+BCRjC8Mm+0o4NrXdS7xmeDGmk00YOVnoPqqXs+vc IZ3KHDYnz6Vd6lGcNLR2BP+JfpvnUfpIBpnwThX/WpuocZdrY/8tjetk6V0C+RN0qkNk irpGcZb/lcuOYmEBSys6AjyUCn4Q8/lzigqiWOvyCy+h3XnNSP5vruGvxyaqAPhGRrf9 7+nDArgI5g50gCBt/CrNIWl3HIEY/olqjqya1jFEnEWaUW5KbMdMkd7VpCZ/KHfhKMUp NTfS4VgsAhMekH75ypa71pFxnJCfpDU80ny6nDka0cR9GVCpSwNHz69Y1/8hyWR4wSdv ZyXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Skw5Ja0n; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a26-20020a170906191a00b00992ad173bd6si8042554eje.812.2023.07.25.05.42.27; Tue, 25 Jul 2023 05:42:51 -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=@gmail.com header.s=20221208 header.b=Skw5Ja0n; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233505AbjGYMUA (ORCPT + 99 others); Tue, 25 Jul 2023 08:20:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233492AbjGYMT4 (ORCPT ); Tue, 25 Jul 2023 08:19:56 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D340A3; Tue, 25 Jul 2023 05:19:52 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-52cb8e5e9f5so3565677a12.0; Tue, 25 Jul 2023 05:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690287591; x=1690892391; 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=BKgU9gs3SrD9kqMiFBWOg/5RTIIycH4Kj6dCZUirkJM=; b=Skw5Ja0n9v+wupTZXM25KmpWUMd3XkQ/QGh60t2IyPIna+NBcWAFsir2eu+crL7crs ut5F9vQXg4kwmti5Cbm62dJ19p63EHAI92O06hkn8WoodHk0JYoy0PoCSfJoA3whXsDW q5vdedj1lVDnEnbmevYJv4PJD7wA4jVWpYBF/2nIFoDuPuVstMmMQPpeS2MIHQS6Hs2/ xghScz6v9wvY2RDTC8iAxELf7QL52dIhP1RXsaGQGOXlI5MAlMSXiusc+M7SpaiZa+Vs q8bqtQLKCHdwLJvNfUrK3pvykzijy+oBEWXCq8DJDEuRFBEacMOh1CFVrmHUvsLtEYRK /hYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690287591; x=1690892391; 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=BKgU9gs3SrD9kqMiFBWOg/5RTIIycH4Kj6dCZUirkJM=; b=MnXwPmMJaiKtvFWyCkK7aRZOs2rUzF35kADWzhehZQWSnpBs+vd0ZEUqClHI+knJh2 w//mZbq/YXk1DBbGoqToA8Tlx7VgOjCtMoviDDEy/JXyGa97R4n+hhPrpo2OZ/3r8m8k 3tPWiQWyHYS4H2VZ4SZI2TI/Z72t+atjMyXKjtMFpTmA8Bot600omA/tjzFrULDTo9qE Q4OOaRrv383E3Znf6TP3wllGgf/MawFzN4VF9EnmF4GE2LpFyWmPeXf+3XnMlqMsoPbI CEiYfkZ87njBk4Gw0kavHRYAxvzdn2q2aXCzMFsnGpWXQICzdpXVV2ZzRcdZgW/BL3KD ppQA== X-Gm-Message-State: ABy/qLYZKn8Es02IwEgG8daVkymB75ocTXb31PGhg7egMy6tzcT3qU/3 yymPoSaV59HTDBd1Z9erOqIFE/E/Hdg= X-Received: by 2002:a17:90a:8685:b0:263:5376:b952 with SMTP id p5-20020a17090a868500b002635376b952mr435422pjn.9.1690287590900; Tue, 25 Jul 2023 05:19:50 -0700 (PDT) Received: from cxl-test.. ([103.181.222.211]) by smtp.gmail.com with ESMTPSA id bg1-20020a17090b0d8100b002676e961261sm988185pjb.1.2023.07.25.05.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 05:19:50 -0700 (PDT) From: Raghu Halharvi To: linux-cxl@vger.kernel.org, Alison Schofield , raghuhack78@gmail.com, ira.weiny@intel.com, bwidawsk@kernel.org, dan.j.williams@intel.com, vishal.l.verma@intel.com Cc: linux-kernel@vger.kernel.org, Dave Jiang Subject: [PATCH RESEND v6 2/2] cxl/region: Remove else after return statement Date: Tue, 25 Jul 2023 12:19:30 +0000 Message-Id: <20230725121930.3732-3-raghuhack78@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230725121930.3732-1-raghuhack78@gmail.com> References: <20230725121930.3732-1-raghuhack78@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 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. Reviewed-by: Dave Jiang Reviewed-by: Vishal Verma Reviewed-by: Ira Weiny Signed-off-by: Raghu Halharvi --- 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