]> git.sur5r.net Git - openocd/commitdiff
ti_icdi: add icdi_usb_query result check
authorSpencer Oliver <spen@spen-soft.co.uk>
Tue, 19 Mar 2013 14:14:51 +0000 (14:14 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 31 Mar 2013 09:04:35 +0000 (09:04 +0000)
Change-Id: I0b40586677a77ee6ae46fe120a677616bde22d1e
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1279
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/drivers/ti_icdi_usb.c

index dcffd2fba02e7f0d3aface879304d93edc78869b..997645199a2d0a81678b55204387d43b2a675933 100644 (file)
@@ -385,6 +385,8 @@ static int icdi_usb_query(void *handle)
 
        /* set extended mode */
        result = icdi_send_cmd(handle, "!");
+       if (result != ERROR_OK)
+               return result;
 
        /* check result */
        result = icdi_get_cmd_result(handle);