summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authorjan <jan@openbsd.org>2020-12-12 11:48:52 +0000
committerjan <jan@openbsd.org>2020-12-12 11:48:52 +0000
commit471f2571dbcecd0ac12f9020fb846fcac790084a (patch)
tree83287df76d83adfc23c123fd341e03b0a389ff75 /sys/dev/usb/if_uath.c
parentavoid uninitialised var by using dma tag from attach args (diff)
downloadwireguard-openbsd-471f2571dbcecd0ac12f9020fb846fcac790084a.tar.xz
wireguard-openbsd-471f2571dbcecd0ac12f9020fb846fcac790084a.zip
Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.
OK dlg@, bluhm@ No Opinion mpi@ Not against it claudio@
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index ae047c6597c..e75546ba901 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.85 2020/07/10 13:22:21 patrick Exp $ */
+/* $OpenBSD: if_uath.c,v 1.86 2020/12/12 11:48:54 jan Exp $ */
/*-
* Copyright (c) 2006
@@ -587,7 +587,7 @@ uath_alloc_rx_data_list(struct uath_softc *sc)
error = ENOMEM;
goto fail;
}
- MCLGETI(data->m, M_DONTWAIT, NULL, sc->rxbufsz);
+ MCLGETL(data->m, M_DONTWAIT, sc->rxbufsz);
if (!(data->m->m_flags & M_EXT)) {
printf("%s: could not allocate rx mbuf cluster\n",
sc->sc_dev.dv_xname);
@@ -1201,7 +1201,7 @@ uath_data_rxeof(struct usbd_xfer *xfer, void *priv,
ifp->if_ierrors++;
goto skip;
}
- MCLGETI(mnew, M_DONTWAIT, NULL, sc->rxbufsz);
+ MCLGETL(mnew, M_DONTWAIT, sc->rxbufsz);
if (!(mnew->m_flags & M_EXT)) {
printf("%s: could not allocate rx mbuf cluster\n",
sc->sc_dev.dv_xname);