generic_flush_one_by_one now always flushes, even if how_much == OPTIONALLY

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1103 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 0a03521de6
commit e76a3be977

@ -1,3 +1,8 @@
2008-02-27 Kolja Waschk <kawk>
* src/tap/cable/generic.c (generic_flush_one_by_one): Always flush,
don't let the queue grow unnecessarily.
2008-02-27 Jie Zhang <jie.zhang@analog.com>
* include/bus.h: Don't include chain.h.

@ -173,7 +173,8 @@ do_one_queued_action( cable_t *cable )
void
generic_flush_one_by_one( cable_t *cable, cable_flush_amount_t how_much )
{
if( how_much == OPTIONALLY ) return;
/* This will flush always, even if how_much == OPTIONALLY,
* because there is no reason to let the queue grow */
while( do_one_queued_action( cable ) );
}

Loading…
Cancel
Save