Author: np
Date: Fri Jul 19 21:54:48 2013
New Revision: 253477
URL: http://svnweb.freebsd.org/changeset/base/253477

Log:
  There's nothing to free if the unit wasn't allocated.

Modified:
  head/sys/dev/usb/usb_pf.c

Modified: head/sys/dev/usb/usb_pf.c
==============================================================================
--- head/sys/dev/usb/usb_pf.c   Fri Jul 19 21:40:57 2013        (r253476)
+++ head/sys/dev/usb/usb_pf.c   Fri Jul 19 21:54:48 2013        (r253477)
@@ -182,7 +182,6 @@ usbpf_clone_create(struct if_clone *ifc,
 
        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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to