diff options
author | Christoph Hellwig <hch@lst.de> | 2016-09-30 14:51:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-10-19 20:36:22 +0300 |
commit | e9c9346e20c1b18a3ec30defd5ff7134bcc0da6d (patch) | |
tree | 59f0374ef21752149323ff4e5d05cbc5f5c016e4 /drivers/nvme/target/discovery.c | |
parent | fa60682677c594d81e9b68b8a4046cde75a7374b (diff) | |
download | linux-e9c9346e20c1b18a3ec30defd5ff7134bcc0da6d.tar.xz |
nvmet: use symbolic constants for CNS values
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/target/discovery.c')
-rw-r--r-- | drivers/nvme/target/discovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/discovery.c b/drivers/nvme/target/discovery.c index a6c25fbcff3f..12f39eea569f 100644 --- a/drivers/nvme/target/discovery.c +++ b/drivers/nvme/target/discovery.c @@ -187,7 +187,7 @@ int nvmet_parse_discovery_cmd(struct nvmet_req *req) case nvme_admin_identify: req->data_len = 4096; switch (le32_to_cpu(cmd->identify.cns)) { - case 0x01: + case NVME_ID_CNS_CTRL: req->execute = nvmet_execute_identify_disc_ctrl; return 0; |