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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user