/* bcm_delete_tx_op - find and remove a tx op (returns number of removed ops)  */
static int bcm_delete_tx_op(struct list_head *ops, canid_t can_id, int ifindex)
/* bcm_delete_tx_op - find and remove a tx op (returns number of removed ops)  */
static int bcm_delete_tx_op(struct list_head *ops, canid_t can_id, int ifindex)
{
	struct bcm_op *op, *n;
	list_for_each_entry_safe(op, n, ops, list) {
		if ((op->can_id == can_id) && (op->ifindex == ifindex)) {
			list_del(&op->list);
			bcm_remove_op(op);
			return 1;
		}
	}
	return 0;
}