[U-Boot] [PATCH] cmd_load.c: Add #endif comments to reduce confusion

Robert P. J. Day rpjday at crashcourse.ca
Sun Feb 3 16:46:13 CET 2013


Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>

---

  i think i got this right ... those chunks are just long enough that
comments are useful.

diff --git a/common/cmd_load.c b/common/cmd_load.c
index 2c8dab1..46db962 100644
--- a/common/cmd_load.c
+++ b/common/cmd_load.c
@@ -1064,8 +1064,8 @@ U_BOOT_CMD(
 	"    - save S-Record file over serial line with offset 'off' and size 'size'"
 );
 #endif	/* CONFIG_SYS_LOADS_BAUD_CHANGE */
-#endif
-#endif
+#endif	/* CONFIG_CMD_SAVES */
+#endif	/* CONFIG_CMD_LOADS */


 #if defined(CONFIG_CMD_LOADB)
@@ -1085,7 +1085,7 @@ U_BOOT_CMD(
 	" with offset 'off' and baudrate 'baud'"
 );

-#endif
+#endif	/* CONFIG_CMD_LOADB */

 /* -------------------------------------------------------------------- */

@@ -1115,4 +1115,4 @@ U_BOOT_CMD(
 	"[on|off]"
 );

-#endif
+#endif	/* CONFIG_CMD_HWFLOW */

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


More information about the U-Boot mailing list