This is an automated email from Gerrit.

Alamy Liu ([email protected]) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/3251

-- gerrit

commit 41a9e0eebe59180f54f44ae92ed51808f631e5a0
Author: Alamy Liu <[email protected]>
Date:   Mon Aug 10 14:03:06 2015 -0700

    jtag/commands.c: Remove redundent conditional checking
    
    The statement is inside the block that
      "cmd->fields[i].in_value" is True
    
    Change-Id: Id254b0ca33706c22090642234feb666be2acb46d
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/src/jtag/commands.c b/src/jtag/commands.c
index 9de9fcf..664c642 100644
--- a/src/jtag/commands.c
+++ b/src/jtag/commands.c
@@ -243,8 +243,7 @@ int jtag_read_buffer(uint8_t *buffer, const struct 
scan_command *cmd)
                        free(char_buf);
 #endif
 
-                       if (cmd->fields[i].in_value)
-                               buf_cpy(captured, cmd->fields[i].in_value, 
num_bits);
+                       buf_cpy(captured, cmd->fields[i].in_value, num_bits);
 
                        free(captured);
                }

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to