[PATCH] parisc: Add missing curly braces in puts()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Static analysis tools complain that we intended to have curly braces
around this indent block.  Which is true.

Fixes: 2f3c7b8137ef ("parisc: Add core code for self-extracting kernel")
Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

diff --git a/arch/parisc/boot/compressed/misc.c b/arch/parisc/boot/compressed/misc.c
index 9345b44b86f0..432d33804a86 100644
--- a/arch/parisc/boot/compressed/misc.c
+++ b/arch/parisc/boot/compressed/misc.c
@@ -121,10 +121,11 @@ int puts(const char *s)
 	const char *nuline = s;
 
 	while ((nuline = strchr(s, '\n')) != NULL) {
-		if (nuline != s)
+		if (nuline != s) {
 			pdc_iodc_print(s, nuline - s);
 			pdc_iodc_print("\r\n", 2);
 			s = nuline + 1;
+		}
 	}
 	if (*s != '\0')
 		pdc_iodc_print(s, strlen(s));
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux