diff options
author | Christoph Hellwig <hch@lst.de> | 2017-03-31 17:00:06 +0200 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2017-04-02 09:24:15 +0200 |
commit | 5ac5fcc6c7a2339a34c876a9b6926a7f17225493 (patch) | |
tree | 74b594ebc644a861416d38188d94c9dbf3670e1a /drivers/nvme/target | |
parent | nvme: add missing byte swap in nvme_setup_discard (diff) | |
download | linux-5ac5fcc6c7a2339a34c876a9b6926a7f17225493.tar.xz linux-5ac5fcc6c7a2339a34c876a9b6926a7f17225493.zip |
nvmet: add missing byte swap in nvmet_get_smart_log
In this case entirely harmless as it's all-ones, but still nice to
shut up sparse.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/admin-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index a7bcff45f437..76450b0c55f1 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c @@ -100,7 +100,7 @@ static u16 nvmet_get_smart_log(struct nvmet_req *req, u16 status; WARN_ON(req == NULL || slog == NULL); - if (req->cmd->get_log_page.nsid == 0xFFFFFFFF) + if (req->cmd->get_log_page.nsid == cpu_to_le32(0xFFFFFFFF)) status = nvmet_get_smart_log_all(req, slog); else status = nvmet_get_smart_log_nsid(req, slog); |