nvme: fix directive command numd calculation
authorKwan (Hingkwan) Huen-SSI <kwan.huen@samsung.com>
Wed, 9 Aug 2017 18:26:29 +0000 (11:26 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Aug 2017 17:53:44 +0000 (19:53 +0200)
commita082b426286d1ead97fb87646ea361d528be023d
treec1b780f80bbaf854dc07447a8ccd281ffc791eda
parent634b8325905031eeafa61951623681ebc1329385
nvme: fix directive command numd calculation

The numd field of directive receive command takes number of dwords to
transfer. This fix has the correct calculation for numd.

Signed-off-by: Kwan (Hingkwan) Huen-SSI <kwan.huen@samsung.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c