There's nothing to free if the unit wasn't allocated.
This commit is contained in:
parent
38441bd9a9
commit
b564fe858c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user