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:
@@ -140,7 +140,7 @@ int rtos_create(struct jim_getopt_info *goi, struct target *target)
|
||||
if (e != JIM_OK)
|
||||
return e;
|
||||
|
||||
if (0 == strcmp(cp, "auto")) {
|
||||
if (strcmp(cp, "auto") == 0) {
|
||||
/* Auto detect tries to look up all symbols for each RTOS,
|
||||
* and runs the RTOS driver's _detect() function when GDB
|
||||
* finds all symbols for any RTOS. See rtos_qsymbol(). */
|
||||
|
||||
Reference in New Issue
Block a user