mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
camdd: Use the NVMEV macro instead of expanded versions
Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D43599
This commit is contained in:
parent
94962f5a72
commit
c9d9315b74
@ -1430,9 +1430,8 @@ camdd_probe_pass_nvme(struct cam_device *cam_dev, union ccb *ccb,
|
||||
|
||||
*maxsector = nsdata.nsze;
|
||||
/* The LBA Data Size (LBADS) is reported as a power of 2 */
|
||||
format = nsdata.flbas & NVME_NS_DATA_FLBAS_FORMAT_MASK;
|
||||
lbads = (nsdata.lbaf[format] >> NVME_NS_DATA_LBAF_LBADS_SHIFT) &
|
||||
NVME_NS_DATA_LBAF_LBADS_MASK;
|
||||
format = NVMEV(NVME_NS_DATA_FLBAS_FORMAT, nsdata.flbas);
|
||||
lbads = NVMEV(NVME_NS_DATA_LBAF_LBADS, nsdata.lbaf[format]);
|
||||
*block_len = 1 << lbads;
|
||||
|
||||
retval = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user