From f7251ebba62c81cef3cb305e1ac1b7ffdf59f191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Tue, 9 Sep 2008 18:19:17 +0000 Subject: [PATCH] test correct return value of bus->driver->init() git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1356 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 2 ++ jtag/src/cmd/detect.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 78800455..f19bb62d 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,5 +1,7 @@ 2008-09-09 Arnim Laeuger + * src/cmd/detect.c: test correct return value of bus->driver->init() + * src/bsdl2jtag.c: fix from and to for downto vectors 2008-09-06 Arnim Laeuger diff --git a/jtag/src/cmd/detect.c b/jtag/src/cmd/detect.c index f2af309f..ca972b33 100644 --- a/jtag/src/cmd/detect.c +++ b/jtag/src/cmd/detect.c @@ -68,7 +68,7 @@ cmd_detect_run( chain_t *chain, char *params[] ) abus = buses.buses[i]; if(abus->driver->init) { - if(!abus->driver->init(abus)) + if(abus->driver->init(abus)) return -1; } }