Skip to content
Snippets Groups Projects
Commit 45b16d22 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Fix coding style; make code better parsable by external tools


Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent b880cbf2
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,13 @@ const uint sdram_table[] = ...@@ -86,6 +86,13 @@ const uint sdram_table[] =
* *
* Always return 1 * Always return 1
*/ */
#if defined(CONFIG_QS850)
#define BOARD_IDENTITY "QS850"
#elif defined(CONFIG_QS823)
#define BOARD_IDENTITY "QS823"
#else
#define BOARD_IDENTITY "QS???"
#endif
int checkboard (void) int checkboard (void)
{ {
...@@ -96,14 +103,8 @@ int checkboard (void) ...@@ -96,14 +103,8 @@ int checkboard (void)
i = getenv_r("serial#", buf, sizeof(buf)); i = getenv_r("serial#", buf, sizeof(buf));
s = (i>0) ? buf : NULL; s = (i>0) ? buf : NULL;
#ifdef CONFIG_QS850 if (!s || strncmp(s, BOARD_IDENTITY, 5)) {
if (!s || strncmp(s, "QS850", 5)) { puts ("### No HW ID - assuming " BOARD_IDENTITY);
puts ("### No HW ID - assuming QS850");
#endif
#ifdef CONFIG_QS823
if (!s || strncmp(s, "QS823", 5)) {
puts ("### No HW ID - assuming QS823");
#endif
} else { } else {
for (e=s; *e; ++e) { for (e=s; *e; ++e) {
if (*e == ' ') if (*e == ' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment