diff options
| author | Chuck Tuffli <chuck@FreeBSD.org> | 2022-01-30 07:07:29 +0000 |
|---|---|---|
| committer | Chuck Tuffli <chuck@FreeBSD.org> | 2022-02-22 03:26:18 +0000 |
| commit | d4941306264f2edd12bb2034b7445f47bdd72f37 (patch) | |
| tree | cc57b5c116845fbbdfc5fb6580b1be5d3763aaaa | |
| parent | ae60b4cfe14b134570875603c226ee2b86555714 (diff) | |
bhyve nvme: Remove redundant AER Limit checks
The NVMe emulation checked if the Asynchronous Event Request Limit
(a.k.a AERL) would be exceeded in pci_nvme_aer_add(), but this function
is only called from nvme_opc_async_event_req() which also checks for
exceeding the AERL.
(cherry picked from commit 45ab4076f36b428595ba1ce200515fda6af58a76)
| -rw-r--r-- | usr.sbin/bhyve/pci_nvme.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 71abfa17deae..682f7561329c 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -744,9 +744,6 @@ pci_nvme_aer_add(struct pci_nvme_softc *sc, uint16_t cid) { struct pci_nvme_aer *aer = NULL; - if (pci_nvme_aer_limit_reached(sc)) - return (-1); - aer = calloc(1, sizeof(struct pci_nvme_aer)); if (aer == NULL) return (-1); |
