mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
There's nothing to free if the unit wasn't allocated.
This commit is contained in:
parent
38441bd9a9
commit
b564fe858c
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Reference in a new issue