This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8187

-- gerrit

commit 7032ff8457ae264d29fd7e74e6012bddb1f5a0bb
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sun Mar 24 22:57:52 2024 +0100

    jtag: linuxgpiod: drop extra parenthesis
    
    Checkpatch complains for extra parenthesis not required.
    
    Drop them.
    
    Change-Id: I311409f5732acf10a4910de5dcf0fb05f43e21b5
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/jtag/drivers/linuxgpiod.c b/src/jtag/drivers/linuxgpiod.c
index 3ca452357a..2f3d644542 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");

-- 

Reply via email to