summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornp <np@FreeBSD.org>2013-07-19 21:54:48 +0000
committernp <np@FreeBSD.org>2013-07-19 21:54:48 +0000
commitd738d8e2b342fcbfd33ef5b6ee7337fe371c87c1 (patch)
tree8d4204ea3cfd3013fad8511c841cdd501072f932
parent52bfa150c78aa1855a2cc5fccfc5beb84f57b16d (diff)
downloadFreeBSD-src-d738d8e2b342fcbfd33ef5b6ee7337fe371c87c1.zip
FreeBSD-src-d738d8e2b342fcbfd33ef5b6ee7337fe371c87c1.tar.gz
There's nothing to free if the unit wasn't allocated.
-rw-r--r--sys/dev/usb/usb_pf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_pf.c b/sys/dev/usb/usb_pf.c
index d849a13..121105b 100644
--- a/sys/dev/usb/usb_pf.c
+++ b/sys/dev/usb/usb_pf.c
@@ -182,7 +182,6 @@ usbpf_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)
error = ifc_alloc_unit(ifc, &unit);
if (error) {
- ifc_free_unit(ifc, unit);
device_printf(ubus->parent, "usbpf: Could not allocate "
"instance\n");
return (error);
OpenPOWER on IntegriCloud