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

This commit is contained in:
Navdeep Parhar 2013-07-19 21:54:48 +00:00
parent 38441bd9a9
commit b564fe858c

View File

@ -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);