/* Description: Remove an IP address entry from the list pointed to by @head. Returns the entry on success, NULL on failure. The caller is responsible for calling the necessary locking functions.  */
struct netlbl_af4list* netlbl_af4list_remove(__be32 addr, __be32 mask, struct list_head *head)
/* Description: Remove an IP address entry from the list pointed to by @head. Returns the entry on success, NULL on failure. The caller is responsible for calling the necessary locking functions.  */
struct netlbl_af4list* netlbl_af4list_remove(__be32 addr, __be32 mask, struct list_head *head)
{
	struct netlbl_af4list *entry;
	entry = netlbl_af4list_search_exact(addr, mask, head);
	if (entry == NULL)
		return NULL;
	netlbl_af4list_remove_entry(entry);
	return entry;
}