jtag: linuxgpiod: minor alignment to coding style
Avoid double TAB in 'then' block by increasing indentation of the multi-line condition. Change-Id: I7f5a4437fe4f74228f1b0d98e5c5921af4fd36b8 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8200 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
parent
495311d206
commit
a9e8ca55a6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue