aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2024-03-24 22:57:52 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2024-04-07 20:09:42 +0000
commit04154af5d6cd5fe76a2583778379bdacb5aa6fb0 (patch)
tree657cd8ff371c1e86ddd817dab1bd414016863382
parent47d983a77aeefa511d18450d65e7111799d926a8 (diff)
downloadriscv-openocd-04154af5d6cd5fe76a2583778379bdacb5aa6fb0.zip
riscv-openocd-04154af5d6cd5fe76a2583778379bdacb5aa6fb0.tar.gz
riscv-openocd-04154af5d6cd5fe76a2583778379bdacb5aa6fb0.tar.bz2
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
-rw-r--r--src/jtag/drivers/linuxgpiod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/linuxgpiod.c b/src/jtag/drivers/linuxgpiod.c
index 3ca4523..2f3d644 100644
--- a/src/jtag/drivers/linuxgpiod.c
+++ b/src/jtag/drivers/linuxgpiod.c
@@ -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");