Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp149953rdh; Sat, 23 Sep 2023 05:20:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWJBVGVdwMgZ1deSfVZY6yhr8l/pHMiiy6nopAFKb4x9asQfHIPyhrSiYQovHGErH6H/dl X-Received: by 2002:a17:902:ecc6:b0:1c0:774d:9342 with SMTP id a6-20020a170902ecc600b001c0774d9342mr2055895plh.25.1695471635832; Sat, 23 Sep 2023 05:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695471635; cv=none; d=google.com; s=arc-20160816; b=iOM9ZXcxOcYa+PJ7OhW8vzBjLpY2KRpyE69qHT7I93uc0Gj4iF438QH0N0eEde/aVN U9t6q47Z+N/Rz39PTEbwQPV/qKetDQ+OYtNV7MmMrnS9q32woGlmBfsfqBfBS5gCkCvx A976R0ecd/E6xPnGAAzDs4hG+anQRJUbbHQ89zT1xEgyQ7Jxy9BOrV/DM62NxAku1se7 lNLBEKhaXrk1HWeQMIO5UH8ApIOoNYYxSINCsBKXKU3LTqAtDK5JAVUKX8HDCDxo9Kv+ 5xyw7h3jch7mzRTv3acJBVT8F5UITRJV64oh5STcvogdWEt7wXX9HWtEXpZg3uFPBaMv n0ng== 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:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=CJozgS+cxiIPZXmV9pUlDsRXFlvycRHAVRzCiYtEyqM=; fh=/YU/EUkFzlVVw3Ho2XKNtKEBhxUEEN6ZW/gi/HZzyAY=; b=Si2IxwtibDNGTpV0OuyRe2SiEXcfss7W7278tXWKlR079CV/Nw+sAI1VxnupIAwTB7 OdTQaHVTTn8o6jFu+BaIbN2DtQwk+wpCAvsg+KedJAtSi1w9pN+Kn8S5/P3Spb8qXX6y sPHMe/11OL7kBaWDNfpXLIuDkF8kpcceNsmKadrnNHar0PXPx5xGeiEBPIw1oRSiEUD2 46qGm3svg1SrzMc8owsgAwtYBfVJU7CUIVh5pFz6kinK3AQrnRTUkZIdvs2gqO+HW1fs 40PX3uomjYVoBuTd9x+8wTRjVWDeE8h57uNR693/iac5qbKlsXa27/ikZ7fFjCNRcnQV WPAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=BPigux2l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x12-20020a170902ec8c00b001c43ff69d93si6145140plg.324.2023.09.23.05.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 05:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=BPigux2l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id B432482663D6; Fri, 22 Sep 2023 04:33:31 -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 S233647AbjIVLde (ORCPT + 99 others); Fri, 22 Sep 2023 07:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233794AbjIVLdS (ORCPT ); Fri, 22 Sep 2023 07:33:18 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8C6CF7 for ; Fri, 22 Sep 2023 04:32:38 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230922113236epoutp02f6a159da71793a78a32fd140e4b7ef64~HNUVfNpeE2300223002epoutp025 for ; Fri, 22 Sep 2023 11:32:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230922113236epoutp02f6a159da71793a78a32fd140e4b7ef64~HNUVfNpeE2300223002epoutp025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695382356; bh=CJozgS+cxiIPZXmV9pUlDsRXFlvycRHAVRzCiYtEyqM=; h=From:To:Cc:Subject:Date:References:From; b=BPigux2l4UVuEDR5ML2QkpJDxhF2h5hW/5Srx3MAfWzZNTUKDK7R7DDMk07K1DIfE uuW7pdAP9bY3b3xuk7sxvoPVwP884z52ZapuanPlcw3d3N5b3MCcNE9/OBWpBzo6nH LjJYi4wCbw1IwjJ6wWwvHDT8slrR9lO1mv8k8SrE= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20230922113235epcas2p1b06a8217ab74094bd5f48149548a66d5~HNUUVEcmx2310223102epcas2p1w; Fri, 22 Sep 2023 11:32:35 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.90]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4RsVVq0FfCz4x9Pp; Fri, 22 Sep 2023 11:32:35 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 59.01.19471.25B7D056; Fri, 22 Sep 2023 20:32:34 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20230922113233epcas2p2cd57df10dde36b0da3b2fc5a916132e8~HNUS2tVMP2731427314epcas2p2F; Fri, 22 Sep 2023 11:32:33 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230922113233epsmtrp126c99db727ff95e052c7a919ca37dc3e~HNUS0jbBb1340313403epsmtrp1d; Fri, 22 Sep 2023 11:32:33 +0000 (GMT) X-AuditID: b6c32a4d-b07ff70000004c0f-97-650d7b521e29 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AA.27.08788.15B7D056; Fri, 22 Sep 2023 20:32:33 +0900 (KST) Received: from jtpark-7920.dsn.sec.samsung.com (unknown [10.229.83.56]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230922113233epsmtip24f39126144d0bc0340b81dbfd9cd5bba~HNUSe7CNM2030120301epsmtip2k; Fri, 22 Sep 2023 11:32:33 +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 v2 2/7] cxl/region: Fix a checkpatch warning Date: Fri, 22 Sep 2023 20:35:20 +0900 Message-Id: <20230922113520.3298976-1-jtp.park@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOJsWRmVeSWpSXmKPExsWy7bCmqW5QNW+qwaw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5xvemaxO88wXPdKhqEuzk+w8Z9Ego7Yh8knXZRY0sTNonvyz3Me/Rr7qiq8aMuB 44qTqpQvss+2e7Pn/f3vls8efRJ56v5xbtEyH42Q+AvP+orONFecN9LTU9v/sq24Zb3sh5cd 3dyCXbYqwjPl2vgPzWy1W3Z41aYHXz0TL79z1V86z/aZYKS3qRJLcUaioRZzUXEiAAodG1MG AwAA X-CMS-MailID: 20230922113233epcas2p2cd57df10dde36b0da3b2fc5a916132e8 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: 20230922113233epcas2p2cd57df10dde36b0da3b2fc5a916132e8 References: 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, 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 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 04:33:31 -0700 (PDT) WARNING: else is not generally useful after a break or return Signed-off-by: Jeongtae Park Reviewed-by: Dave Jiang --- 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