From: Martin Schmölzer Date: Mon, 4 Jul 2011 10:30:13 +0000 (+0200) Subject: ULINK driver: Properly propagate return values in ulink_execute_queue() X-Git-Tag: v0.6.0-rc1~594 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6f8b2ab669d070d6a4b82b36c4b0787bf162112;p=openocd ULINK driver: Properly propagate return values in ulink_execute_queue() Signed-off-by: Martin Schmölzer --- diff --git a/src/jtag/drivers/ulink.c b/src/jtag/drivers/ulink.c index f8103942..d7e16b53 100644 --- a/src/jtag/drivers/ulink.c +++ b/src/jtag/drivers/ulink.c @@ -1678,6 +1678,10 @@ static int ulink_execute_queue(void) break; } + if (ret != ERROR_OK) { + return ret; + } + cmd = cmd->next; }