/* Close interface function to upper layer. Each one who wants to close an open SAP (for example NetBEUI) should call this function. Removes this sap from the list of saps in the station and then frees the memory for this sap.  */
void llc_sap_close(struct llc_sap *sap)
/* Close interface function to upper layer. Each one who wants to close an open SAP (for example NetBEUI) should call this function. Removes this sap from the list of saps in the station and then frees the memory for this sap.  */
void llc_sap_close(struct llc_sap *sap)
{
	WARN_ON(!hlist_empty(&sap->sk_list.list));
	llc_del_sap(sap);
	kfree(sap);
}