jtag: linuxgpiod: drop extra parenthesis

Checkpatch complains for extra parenthesis not required.

Drop them.

Change-Id: I311409f5732acf10a4910de5dcf0fb05f43e21b5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8187
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2024-03-24 22:57:52 +01:00
parent 47d983a77a
commit 04154af5d6
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ static int linuxgpiod_swd_write(int swclk, int swdio)
int retval;
if (!swdio_input) {
if (!last_stored || (swdio != last_swdio)) {
if (!last_stored || swdio != last_swdio) {
retval = gpiod_line_set_value(gpiod_line[ADAPTER_GPIO_IDX_SWDIO], swdio);
if (retval < 0)
LOG_WARNING("Fail set swdio");
@ -165,7 +165,7 @@ static int linuxgpiod_swd_write(int swclk, int swdio)
}
/* write swclk last */
if (!last_stored || (swclk != last_swclk)) {
if (!last_stored || swclk != last_swclk) {
retval = gpiod_line_set_value(gpiod_line[ADAPTER_GPIO_IDX_SWCLK], swclk);
if (retval < 0)
LOG_WARNING("Fail set swclk");