]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/nvme/target/discovery.c
Merge tag 'for-f2fs-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk...
[mirror_ubuntu-artful-kernel.git] / drivers / nvme / target / discovery.c
index 12f39eea569f2fb33cec45884c188d0ad8ae2493..af8aabf0533504971bef38fbdd02c3943b805a5f 100644 (file)
@@ -186,14 +186,14 @@ int nvmet_parse_discovery_cmd(struct nvmet_req *req)
                }
        case nvme_admin_identify:
                req->data_len = 4096;
-               switch (le32_to_cpu(cmd->identify.cns)) {
+               switch (cmd->identify.cns) {
                case NVME_ID_CNS_CTRL:
                        req->execute =
                                nvmet_execute_identify_disc_ctrl;
                        return 0;
                default:
                        pr_err("nvmet: unsupported identify cns %d\n",
-                               le32_to_cpu(cmd->identify.cns));
+                               cmd->identify.cns);
                        return NVME_SC_INVALID_OPCODE | NVME_SC_DNR;
                }
        default: