aboutsummaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorEvgeniy Naydanov <109669442+en-sc@users.noreply.github.com>2024-06-05 19:26:06 +0300
committerGitHub <noreply@github.com>2024-06-05 19:26:06 +0300
commit40cda81e8bab91c1cb864a7d01aad5192d57c528 (patch)
tree2f90560e2468d8bde22179c3ba99b41064570047 /src/jtag
parentb548653f66db7cc73bd0bdce33bc51220e509078 (diff)
parent9c4a5d64ca8e4310fd81de22bbf141c2a1d62b36 (diff)
downloadriscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.zip
riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.gz
riscv-openocd-40cda81e8bab91c1cb864a7d01aad5192d57c528.tar.bz2
Merge pull request #1075 from en-sc/en-sc/from_upstream
Merge up to 437dde701c13e707e5fd912ef6403e09052e4d9b from upstream
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/drivers/linuxgpiod.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/jtag/drivers/linuxgpiod.c b/src/jtag/drivers/linuxgpiod.c
index 2f3d644..1926ed9 100644
--- a/src/jtag/drivers/linuxgpiod.c
+++ b/src/jtag/drivers/linuxgpiod.c
@@ -378,12 +378,12 @@ static int linuxgpiod_init(void)
goto out_error;
}
- if (helper_get_line(ADAPTER_GPIO_IDX_TDO) != ERROR_OK ||
- helper_get_line(ADAPTER_GPIO_IDX_TDI) != ERROR_OK ||
- helper_get_line(ADAPTER_GPIO_IDX_TCK) != ERROR_OK ||
- helper_get_line(ADAPTER_GPIO_IDX_TMS) != ERROR_OK ||
- helper_get_line(ADAPTER_GPIO_IDX_TRST) != ERROR_OK)
- goto out_error;
+ if (helper_get_line(ADAPTER_GPIO_IDX_TDO) != ERROR_OK
+ || helper_get_line(ADAPTER_GPIO_IDX_TDI) != ERROR_OK
+ || helper_get_line(ADAPTER_GPIO_IDX_TCK) != ERROR_OK
+ || helper_get_line(ADAPTER_GPIO_IDX_TMS) != ERROR_OK
+ || helper_get_line(ADAPTER_GPIO_IDX_TRST) != ERROR_OK)
+ goto out_error;
}
if (transport_is_swd()) {
@@ -413,9 +413,9 @@ static int linuxgpiod_init(void)
goto out_error;
}
- if (helper_get_line(ADAPTER_GPIO_IDX_SRST) != ERROR_OK ||
- helper_get_line(ADAPTER_GPIO_IDX_LED) != ERROR_OK)
- goto out_error;
+ if (helper_get_line(ADAPTER_GPIO_IDX_SRST) != ERROR_OK
+ || helper_get_line(ADAPTER_GPIO_IDX_LED) != ERROR_OK)
+ goto out_error;
return ERROR_OK;