git: e9ef42c97b4d - main - security/quantis-kmod: fix build on -CURRENT

From: Alex Dupre <ale_at_FreeBSD.org>
Date: Tue, 26 Apr 2022 15:40:51 UTC
The branch main has been updated by ale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e9ef42c97b4d62d2b8382e75894f02faae83cdc0

commit e9ef42c97b4d62d2b8382e75894f02faae83cdc0
Author:     Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2022-04-26 15:40:02 +0000
Commit:     Alex Dupre <ale@FreeBSD.org>
CommitDate: 2022-04-26 15:40:47 +0000

    security/quantis-kmod: fix build on -CURRENT
---
 .../files/patch-freebsd_quantis__pci__freebsd.c        | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c b/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c
new file mode 100644
index 000000000000..1027ef172ab1
--- /dev/null
+++ b/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c
@@ -0,0 +1,18 @@
+--- freebsd/quantis_pci_freebsd.c.orig	2022-04-26 15:35:51 UTC
++++ freebsd/quantis_pci_freebsd.c
+@@ -287,7 +287,6 @@ static int quantis_detach(device_t device, struct quan
+  **/
+ static int quantis_allocate_resources(device_t device)
+ {
+-  int  error;
+   struct quantis_pci_device *scp = DEVICE2SOFTC(device);
+ 
+   mtx_init(&scp->mutex, "Quantis Device Mutex", NULL, MTX_DEF);
+@@ -301,7 +300,6 @@ static int quantis_allocate_resources(device_t device)
+   return (0);
+ 
+ errexit:
+-  error = ENXIO;
+   quantis_deallocate_resources(device);
+   return (ENXIO);
+ }