This is an automated email from Gerrit. "zapb <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9581
-- gerrit commit 946f29ac893641204ea01cad46ec26cf6600235b Author: Marc Schink <[email protected]> Date: Sat Apr 18 14:48:32 2026 +0200 adapters/xvc: Handle return values during initialization Propagate errors from xvc_getinfo() and xvc_set_tck() during adapter initialization instead of silently ignoring them. Change-Id: I8cb86194b8cdbbccb1a49e0e97d50905c62af2ec Signed-off-by: Marc Schink <[email protected]> diff --git a/src/jtag/drivers/xvc.c b/src/jtag/drivers/xvc.c index 3d1c431ce1..8a1bc7c7fd 100644 --- a/src/jtag/drivers/xvc.c +++ b/src/jtag/drivers/xvc.c @@ -462,16 +462,23 @@ static int xvc_init(void) xvc_tck = 1000; LOG_DEBUG("Initializing XVC driver"); - int err = ERROR_OK; + int ret; + if (!xvc_port) - err = xvc_init_unix(&xvc_fd); + ret = xvc_init_unix(&xvc_fd); else - err = xvc_init_tcp(&xvc_fd); - if (err != ERROR_OK) - return err; + ret = xvc_init_tcp(&xvc_fd); + + if (ret != ERROR_OK) + return ret; + + ret = xvc_getinfo(); + if (ret != ERROR_OK) + return ret; - xvc_getinfo(); - xvc_set_tck(); + ret = xvc_set_tck(); + if (ret != ERROR_OK) + return ret; LOG_DEBUG("XVC driver initialized"); --
