Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1790188rdb; Wed, 20 Sep 2023 22:18:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzcz7JuMZqY6KZi65XgMAmrNLKbjQt40Wg/Mm8YmDE2FYLZn2XBHaWACJpFXQXa6Y4vZaj X-Received: by 2002:a05:6808:618d:b0:3a7:96e5:6a58 with SMTP id dn13-20020a056808618d00b003a796e56a58mr4002277oib.18.1695273518112; Wed, 20 Sep 2023 22:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695273518; cv=none; d=google.com; s=arc-20160816; b=bNnyP2dscMsL80YbJhGrM1eHsIHZjO93BXQNJT5ESBTn+bXD3cjbzjIfhZrRdkDDph bU1QaBazvDobppok5QYaazkKxS53UI69xrcPweIhh+dVEuKItY01zonCraFJHnGtYl5j 2mx9OaWZQvI+h0W6mjKc4t6vtqY/r6IANEijNrqxeOIP/k+Detydv+oJQOs8xUAgnL/y YpzAkBREGEavPG5PwLjCU/BA7GcAsIVaweTPFzyDjyfTEjvqbFVNpQDYxsM4fh8YkrJ/ WCLqpp5wH5AY5n5uSPNGkaQxR7Kip6TTDhqvDZwguo5uffYTX2WnLb3OdG2ULDbXGbG9 uEFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=eQs3oOBUl8TOI88n2KMfQhOFmOGcSow2Eqo6lXtpHck=; fh=/YU/EUkFzlVVw3Ho2XKNtKEBhxUEEN6ZW/gi/HZzyAY=; b=F/jvkoaqxLtE5ngN63H7JdicRePvGYanT1huQEE01SNwrvL8JLddm/KbpxuMs/vKQE 3ijmIox7JIg9lbpfMe4zbZrQN4+J/G1V91BACZmaVsQL4r7KvQf24UDFlKijjFHrvH6m yBlhxnP1tDxlkwC31ph3FFstL1+qSVP4KZ75KxGla8HLs8RzZpO3eqXdZ7SV/bofJ2/I n+RnZQJnGkTx8wWM/yE2Q2sa7vQIe8OvaGMR3zmj7hhiv3z88Dvs56yCBLrUNuAiur9Q pAo81PxXhmPQTLMlm6yu1z4dqG52xdTFqfkt4fZlUtXh9Z83/XOSsna5+I8XCJb/GSKW 10EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=D72n7FJJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k21-20020aa788d5000000b00690feb23e3esi739494pff.17.2023.09.20.22.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 22:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=D72n7FJJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DE1678031F27; Wed, 20 Sep 2023 19:48:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjIUCss (ORCPT + 99 others); Wed, 20 Sep 2023 22:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjIUCsr (ORCPT ); Wed, 20 Sep 2023 22:48:47 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C4E9EA for ; Wed, 20 Sep 2023 19:48:36 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230921024833epoutp04989deff335daa7b0d75367ce74f34df0~GyhfbIwts0225902259epoutp04Z for ; Thu, 21 Sep 2023 02:48:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230921024833epoutp04989deff335daa7b0d75367ce74f34df0~GyhfbIwts0225902259epoutp04Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695264513; bh=eQs3oOBUl8TOI88n2KMfQhOFmOGcSow2Eqo6lXtpHck=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D72n7FJJZV0cKt8SYsuIHuPk+0Q9pUP8JFse/cKvQm2d2FuvJAJyzvZebOrClLrRs xgj3+KX1MBdXcoOLX6DNeJqLQRwwbmpyMvvdzysAsNeVltgTbT/gx/kOPZDUZMe86v g19xCwXK5Gyq4fHS+wd0b8WOWGkguce9a/iSxTMU= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20230921024832epcas2p4fa2cc601cc71563c4a38c5c3159d1c48~Gyheqjm8w0279002790epcas2p4I; Thu, 21 Sep 2023 02:48:32 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.91]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Rrfwc384qz4x9Pw; Thu, 21 Sep 2023 02:48:32 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id E5.B5.09693.00FAB056; Thu, 21 Sep 2023 11:48:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20230921024831epcas2p36f222c434f41ce80ac2850374868da9a~Gyhd06yjA2381623816epcas2p3Z; Thu, 21 Sep 2023 02:48:31 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230921024831epsmtrp12a10fd83224f5efc331755a0c369865b~Gyhd0Bems0377003770epsmtrp1f; Thu, 21 Sep 2023 02:48:31 +0000 (GMT) X-AuditID: b6c32a45-abbfd700000025dd-5a-650baf0099d0 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C5.53.08649.FFEAB056; Thu, 21 Sep 2023 11:48:31 +0900 (KST) Received: from jtpark-7920.dsn.sec.samsung.com (unknown [10.229.83.56]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230921024831epsmtip2498376f7b0e70aecb694089554e334b1~GyhdkW2Jr1644616446epsmtip26; Thu, 21 Sep 2023 02:48:31 +0000 (GMT) From: Jeongtae Park To: Dan Williams , Alison Schofield , Vishal Verma , Ben Widawsky , Jonathan Cameron , Dave Jiang , Davidlohr Bueso , Fan Ni , linux-cxl@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kyungsan Kim , Wonjae Lee , Hojin Nam , Junhyeok Im , Jehoon Park , Jeongtae Park , Jeongtae Park Subject: [PATCH 2/7] cxl/region: Fix a checkpatch warning Date: Thu, 21 Sep 2023 11:51:05 +0900 Message-Id: <20230921025110.3717583-3-jtp.park@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230921025110.3717583-1-jtp.park@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Ta0xTZxj2O6c9PYC4s4Lbt/6YzWH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XcKtXSPfMaruspv2DefWCb21b+hBcRh3pbIs+fd9az4fp1KirfZFHr qql/3wtvtOphFI//JDLn7dNViTcbwrgnzXIuatuR3yz/bgbzn30Vr/odBcU2PBXgz7jmJx5o vN3fJ+v2Y+spui9/Mr7zOf/9HnOH6YUlS+MXaemLpsX9+/bMuqTiI8vsHGkny7SC8NTvLxlu 7j4YrsRSnJFoqMVcVJwIAICE5AwfAwAA X-CMS-MailID: 20230921024831epcas2p36f222c434f41ce80ac2850374868da9a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230921024831epcas2p36f222c434f41ce80ac2850374868da9a References: <20230921025110.3717583-1-jtp.park@samsung.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 19:48:45 -0700 (PDT) WARNING: else is not generally useful after a break or return Signed-off-by: Jeongtae Park --- drivers/cxl/core/region.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index e115ba382e04..1fc9d01c1ac0 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -133,11 +133,10 @@ 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.34.1