/* Remove neighbour from x25_neigh_list. If it was there. Caller must hold x25_neigh_list_lock.  */
static void __x25_remove_neigh(struct x25_neigh *nb)
/* Remove neighbour from x25_neigh_list. If it was there. Caller must hold x25_neigh_list_lock.  */
static void __x25_remove_neigh(struct x25_neigh *nb)
{
	skb_queue_purge(&nb->queue);
	x25_stop_t20timer(nb);
	if (nb->node.next) {
		list_del(&nb->node);
		x25_neigh_put(nb);
	}
}