diff options
author | Gollu Appalanaidu | 2021-02-22 19:31:19 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-03-09 11:00:57 +0100 |
commit | 8c4d305f31f09064988e7f0a543dc94b7dbff2b2 (patch) | |
tree | 03e9380150a6cab94e4d8a1952fd1761d2d28536 | |
parent | hw/block/nvme: align zoned.zasl with mdts (diff) | |
download | qemu-8c4d305f31f09064988e7f0a543dc94b7dbff2b2.tar.gz qemu-8c4d305f31f09064988e7f0a543dc94b7dbff2b2.tar.xz qemu-8c4d305f31f09064988e7f0a543dc94b7dbff2b2.zip |
hw/block/nvme: remove unnecessary endian conversion
Remove an unnecessary le_to_cpu conversion in Identify.
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
-rw-r--r-- | hw/block/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |