forked from auracaster/openocd
openocd: manually fix Yoda conditions
Fix the remaining Yoda conditions, detected by checkpatch but not fixed automatically. While there, apply minor style changes. Change-Id: I6e1978b89c4d56a20aceaeb2b52968eb6384432a Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6356 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
@@ -577,8 +577,7 @@ COMMAND_HANDLER(handle_nds32_decode_command)
|
||||
while (i < insn_count) {
|
||||
if (ERROR_OK != nds32_read_opcode(nds32, read_addr, &opcode))
|
||||
return ERROR_FAIL;
|
||||
if (ERROR_OK != nds32_evaluate_opcode(nds32, opcode,
|
||||
read_addr, &instruction))
|
||||
if (nds32_evaluate_opcode(nds32, opcode, read_addr, &instruction) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
|
||||
command_print(CMD, "%s", instruction.text);
|
||||
|
||||
Reference in New Issue
Block a user