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>
This commit is contained in:
parent
578d914b26
commit
8c4d305f31
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user