Skip to contentSkip to conversation

PM / hibernate: Add missing braces in hibernate_setup()

PATCH New Rafael J. Wysocki 1 participant 1 message Jul 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / hibernate: Add missing braces in hibernate_setup()

From: Rafael J. Wysocki <[email protected]>

Make hibernate_setup() follow the coding style more closely by adding some missing braces to the if () statement in it.

---

This is on top of https://patchwork.kernel.org/patch/9214179/

---
 kernel/power/hibernate.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/power/hibernate.c +3 -3
Index: linux-pm/kernel/power/hibernate.c
===================================================================
@@ -1119,11 +1119,11 @@ static int __init resume_offset_setup(ch
 
 static int __init hibernate_setup(char *str)
 {
-	if (!strncmp(str, "noresume", 8))
+	if (!strncmp(str, "noresume", 8)) {
 		noresume = 1;
-	else if (!strncmp(str, "nocompress", 10))
+	} else if (!strncmp(str, "nocompress", 10)) {
 		nocompress = 1;
-	else if (!strncmp(str, "no", 2)) {
+	} else if (!strncmp(str, "no", 2)) {
 		noresume = 1;
 		nohibernate = 1;
 	} else if (!strncmp(str, "protect_image", 13)) {