[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230509165218.139568-3-raghuhack78@gmail.com>
Date: Tue, 9 May 2023 16:52:17 +0000
From: Raghu Halharvi <raghuhack78@...il.com>
To: linux-cxl@...r.kernel.org,
Alison Schofield <alison.schofield@...el.com>,
raghuhack78@...il.com, ira.weiny@...el.com, bwidawsk@...nel.org,
dan.j.williams@...el.com, vishal.l.verma@...el.com
Cc: linux-kernel@...r.kernel.org, Dave Jiang <dave.jiang@...el.com>
Subject: [PATCH v5 2/2] cxl/region: Remove else after return statement
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 <dave.jiang@...el.com>
Reviewed-by: Vishal Verma <vishal.l.verma@...el.com>
Signed-off-by: Raghu Halharvi <raghuhack78@...il.com>
---
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 f29028148806..a46d6ad9ef0a 100644
--- a/drivers/cxl/core/region.c
+++ b/drivers/cxl/core/region.c
@@ -2666,11 +2666,11 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr)
"Bypassing cpu_cache_invalidate_memregion() for testing!\n");
clear_bit(CXL_REGION_F_INCOHERENT, &cxlr->flags);
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
Powered by blists - more mailing lists