Skip to contentSkip to conversation

parisc: Fix indenting in puts()

PATCH New Helge Deller 1 participant 1 message Dec 12, 2017 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Fix indenting in puts()

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 2f3c7b8137ef ("parisc: Add core code for self-extracting kernel")
arch/parisc/boot/compressed/misc.c +2 -2
index 9345b44b86f0..f57118e1f6b4 100644
@@ -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));