]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cosmetic: Fixup fixup_silent_linux() for checkpatch
authorDoug Anderson <dianders@chromium.org>
Wed, 19 Oct 2011 12:30:57 +0000 (12:30 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 20 Oct 2011 14:38:08 +0000 (16:38 +0200)
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
common/cmd_bootm.c

index bb9b698d39612b30b3c87632da73145127a9cc47..ece1b9a1e2563ef85ee665972f437064c88f1539 100644 (file)
@@ -1200,34 +1200,35 @@ U_BOOT_CMD(
 /* helper routines */
 /*******************************************************************/
 #ifdef CONFIG_SILENT_CONSOLE
-static void fixup_silent_linux ()
+static void fixup_silent_linux(void)
 {
        char buf[256], *start, *end;
-       char *cmdline = getenv ("bootargs");
+       char *cmdline = getenv("bootargs");
 
        /* Only fix cmdline when requested */
        if (!(gd->flags & GD_FLG_SILENT))
                return;
 
-       debug ("before silent fix-up: %s\n", cmdline);
+       debug("before silent fix-up: %s\n", cmdline);
        if (cmdline) {
-               if ((start = strstr (cmdline, "console=")) != NULL) {
-                       end = strchr (start, ' ');
-                       strncpy (buf, cmdline, (start - cmdline + 8));
+               start = strstr(cmdline, "console=");
+               if (start) {
+                       end = strchr(start, ' ');
+                       strncpy(buf, cmdline, (start - cmdline + 8));
                        if (end)
-                               strcpy (buf + (start - cmdline + 8), end);
+                               strcpy(buf + (start - cmdline + 8), end);
                        else
                                buf[start - cmdline + 8] = '\0';
                } else {
-                       strcpy (buf, cmdline);
-                       strcat (buf, " console=");
+                       strcpy(buf, cmdline);
+                       strcat(buf, " console=");
                }
        } else {
-               strcpy (buf, "console=");
+               strcpy(buf, "console=");
        }
 
-       setenv ("bootargs", buf);
-       debug ("after silent fix-up: %s\n", buf);
+       setenv("bootargs", buf);
+       debug("after silent fix-up: %s\n", buf);
 }
 #endif /* CONFIG_SILENT_CONSOLE */