aboutsummaryrefslogtreecommitdiff
path: root/src/svf
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-05-06 01:03:52 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-05-09 14:39:29 +0100
commit4f459660a9dab3877f6f27127e565dd2b49b4ec7 (patch)
treefa7cd2c56bb304ee35ac1ec3a758f8fb88260167 /src/svf
parente66bb9d3121eef35c312997aacb401847249a5cb (diff)
downloadriscv-openocd-4f459660a9dab3877f6f27127e565dd2b49b4ec7.zip
riscv-openocd-4f459660a9dab3877f6f27127e565dd2b49b4ec7.tar.gz
riscv-openocd-4f459660a9dab3877f6f27127e565dd2b49b4ec7.tar.bz2
coding style: avoid unnecessary line continuations
Line continuation, adding a backslash as last char of the line, is requested in multi-line macro definition, but is not necessary in the rest of C code. Remove it where present. Identified by checkpatch script from Linux kernel v5.1 using the command find src/ -type f -exec ./tools/scripts/checkpatch.pl \ -q --types LINE_CONTINUATIONS -f {} \; Change-Id: Id0c69e93456731717a7b290b16580e9f8ae741bc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5619 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
Diffstat (limited to 'src/svf')
-rw-r--r--src/svf/svf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c
index 54fc7d1..fd27417 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -1540,8 +1540,8 @@ XXR_common:
if (debug_level >= LOG_LVL_DEBUG) {
/* for convenient debugging, execute tap if possible */
- if ((svf_buffer_index > 0) && \
- (((command != STATE) && (command != RUNTEST)) || \
+ if ((svf_buffer_index > 0) &&
+ (((command != STATE) && (command != RUNTEST)) ||
((command == STATE) && (num_of_argu == 2)))) {
if (ERROR_OK != svf_execute_tap())
return ERROR_FAIL;
@@ -1555,8 +1555,8 @@ XXR_common:
/* for fast executing, execute tap if necessary */
/* half of the buffer is for the next command */
if (((svf_buffer_index >= SVF_MAX_BUFFER_SIZE_TO_COMMIT) ||
- (svf_check_tdo_para_index >= SVF_CHECK_TDO_PARA_SIZE / 2)) && \
- (((command != STATE) && (command != RUNTEST)) || \
+ (svf_check_tdo_para_index >= SVF_CHECK_TDO_PARA_SIZE / 2)) &&
+ (((command != STATE) && (command != RUNTEST)) ||
((command == STATE) && (num_of_argu == 2))))
return svf_execute_tap();
}