mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
bhyve: Use NVMEV to read the ASQS field of AQA
This is not a functional change, but just being consistent instead of omitting a shift by 0. Reviewed by: corvink, chuck, imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D43600
This commit is contained in:
parent
c9d9315b74
commit
c426923606
|
@ -1065,7 +1065,7 @@ pci_nvme_init_controller(struct pci_nvme_softc *sc)
|
|||
* cleared to 0h produces undefined results" for both ACQS and
|
||||
* ASQS. If zero, set CFS and do not become ready.
|
||||
*/
|
||||
asqs = ONE_BASED(sc->regs.aqa & NVME_AQA_REG_ASQS_MASK);
|
||||
asqs = ONE_BASED(NVMEV(NVME_AQA_REG_ASQS, sc->regs.aqa));
|
||||
if (asqs < 2) {
|
||||
EPRINTLN("%s: illegal ASQS value %#x (aqa=%#x)", __func__,
|
||||
asqs - 1, sc->regs.aqa);
|
||||
|
|
Loading…
Reference in a new issue