OSDN Git Service

nvme: avoid double dereference to convert le to cpu
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 25 Feb 2019 11:00:04 +0000 (13:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:56 +0000 (08:07 +0200)
commit43e2d08d0790a09ee1d2c838e33343ee1bcaf610
tree4305a5fa341a546a18760c8d8560599011498df5
parent2b24e6f63ac9e817630424c6d8f008256348dfc4
nvme: avoid double dereference to convert le to cpu

Use le16_to_cpu instead of le16_to_cpup and le64_to_cpu instead of
le64_to_cpup. This will also align the code to nvme-core driver
convention.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c