diff options
author | Christoph Hellwig | 2017-01-28 09:32:49 +0100 |
---|---|---|
committer | Jens Axboe | 2017-01-30 16:33:51 +0100 |
commit | 1a7347c7dba9c88f47d1b81622917794b2e2ade3 (patch) | |
tree | bf86442027b711fa51a2c95665965dfc99c01be5 /drivers/block/paride | |
parent | nvme: fix compilation of scsi component (diff) | |
download | kernel-qcow2-linux-1a7347c7dba9c88f47d1b81622917794b2e2ade3.tar.gz kernel-qcow2-linux-1a7347c7dba9c88f47d1b81622917794b2e2ade3.tar.xz kernel-qcow2-linux-1a7347c7dba9c88f47d1b81622917794b2e2ade3.zip |
nvme/scsi: don't rely on BLK_MAX_CDB
The NVMe SCSI emulation doesn't use BLOCK_PC requests, so BLK_MAX_CDB
doesn't have a meaning for it. Instead opencode the value of 16
and refactor the code a bit so that related checks are next to each
other and we only need to use the value in one place.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/paride')
0 files changed, 0 insertions, 0 deletions