CID1130004: Nesting level does not match indentation

Code that is meant to be executed conditionally may be executed unconditionally
In print_supported_boards_helper: The indentation of this code suggests it is
nested when it is not.

Signed-off-by: Stefan Reinauer <[email protected]>

Index: print.c
===================================================================
--- print.c     (revision 1763)
+++ print.c     (working copy)
@@ -436,13 +436,14 @@
                msg_ginfo("%s", b->name);
                for (i = 0; i < maxboardlen - strlen(b->name); i++)
                        msg_ginfo(" ");
-                       if (b->working == OK)
-                               msg_ginfo("OK      ");
-                       else if (b->working == NT)
-                               msg_ginfo("NT      ");
-                       else
-                               msg_ginfo("BAD     ");
 
+               if (b->working == OK)
+                       msg_ginfo("OK      ");
+               else if (b->working == NT)
+                       msg_ginfo("NT      ");
+               else
+                       msg_ginfo("BAD     ");
+
                for (e = board_matches; e->vendor_name != NULL; e++) {
                        if (strcmp(e->vendor_name, b->vendor)
                            || strcmp(e->board_name, b->name))

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to