]> git.baikalelectronics.ru Git - kernel.git/commitdiff
parisc: Fix indenting in puts()
authorHelge Deller <deller@gmx.de>
Tue, 12 Dec 2017 20:32:16 +0000 (21:32 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 17 Dec 2017 20:06:25 +0000 (21:06 +0100)
Static analysis tools complain that we intended to have curly braces
around this indent block. In this case this assumption is wrong, so fix
the indenting.

Fixes: 38a4ddab23ba ("parisc: Add core code for self-extracting kernel")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v4.14+
arch/parisc/boot/compressed/misc.c

index 9345b44b86f036572e33721eb80e9bbbe4493aa4..f57118e1f6b4265257799ae2cf8ea356077e20b9 100644 (file)
@@ -123,8 +123,8 @@ int puts(const char *s)
        while ((nuline = strchr(s, '\n')) != NULL) {
                if (nuline != s)
                        pdc_iodc_print(s, nuline - s);
-                       pdc_iodc_print("\r\n", 2);
-                       s = nuline + 1;
+               pdc_iodc_print("\r\n", 2);
+               s = nuline + 1;
        }
        if (*s != '\0')
                pdc_iodc_print(s, strlen(s));