From 8c4d305f31f09064988e7f0a543dc94b7dbff2b2 Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Mon, 22 Feb 2021 19:31:19 +0100 Subject: hw/block/nvme: remove unnecessary endian conversion Remove an unnecessary le_to_cpu conversion in Identify. Signed-off-by: Gollu Appalanaidu Signed-off-by: Klaus Jensen Reviewed-by: Minwoo Im --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/block') diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 23e1c91ed2..64340a00df 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -3422,7 +3422,7 @@ static uint16_t nvme_identify(NvmeCtrl *n, NvmeRequest *req) { NvmeIdentify *c = (NvmeIdentify *)&req->cmd; - switch (le32_to_cpu(c->cns)) { + switch (c->cns) { case NVME_ID_CNS_NS: /* fall through */ case NVME_ID_CNS_NS_PRESENT: -- cgit v1.2.3-55-g7522