| 728 | } |
| 729 | |
| 730 | static int |
| 731 | ifc_simple_destroy(struct if_clone *ifc, struct ifnet *ifp) |
| 732 | { |
| 733 | int unit; |
| 734 | |
| 735 | unit = ifp->if_dunit; |
| 736 | |
| 737 | if (unit < ifc->ifcs_minifs) |
| 738 | return (EINVAL); |
| 739 | |
| 740 | ifc->ifcs_destroy(ifp); |
| 741 | |
| 742 | ifc_free_unit(ifc, unit); |
| 743 | |
| 744 | return (0); |
| 745 | } |
| 746 | |
| 747 | const char * |
| 748 | ifc_name(struct if_clone *ifc) |
no test coverage detected