hw/cxl/type3: Cleanup multiple CXL_TYPE3() calls in read/write functions
authorGregory Price <gourry.memverge@gmail.com>
Mon, 23 Oct 2023 16:08:04 +0000 (17:08 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commitede604d505d711e45abcc37dd4389967fda410d7
tree73f288083db918c378b808a3e5bfb4e22a9b3f41
parent9dd15ab6e6b35db6ff166e5016b0c2042c5439c6
hw/cxl/type3: Cleanup multiple CXL_TYPE3() calls in read/write functions

Call CXL_TYPE3 once at top of function to avoid multiple invocations.

Signed-off-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20231023160806.13206-16-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/cxl_type3.c