Skip to content

Commit

Permalink
parisc: Fix indenting in puts()
Browse files Browse the repository at this point in the history
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: 2f3c7b8 ("parisc: Add core code for self-extracting kernel")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Cc: <[email protected]> # v4.14+
  • Loading branch information
hdeller committed Dec 17, 2017
1 parent 50c4c4e commit 203c110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/parisc/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 203c110

Please sign in to comment.