[OPW,kernel,v3,2/3] PM / hibernate: Fix spacing issues
diff mbox

Message ID 7825fac6a952dae943e3f769ff27509787441ec4.1414607839.git.ruchandani.tina@gmail.com
State New, archived
Headers show

Commit Message

Tina Ruchandani Oct. 29, 2014, 6:46 p.m. UTC
This patch fixes the following checkpatch errors:
- Add space after comma in function args
- No spaces after the opening ( or before the closing ) in a function call.
- Add space in "while(1)"
- (foo * bar) should be (foo *bar)

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
---
 kernel/power/hibernate.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch
diff mbox

diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index 7a7bfb3..2b0d534 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -623,7 +623,7 @@  static void power_down(void)
 	 * corruption after resume.
 	 */
 	pr_crit("PM: Please power down manually\n");
-	while(1);
+	while (1);
 }
 
 /**
@@ -966,7 +966,7 @@  power_attr(disk);
 static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr,
 			   char *buf)
 {
-	return sprintf(buf,"%d:%d\n", MAJOR(swsusp_resume_device),
+	return sprintf(buf, "%d:%d\n", MAJOR(swsusp_resume_device),
 		       MINOR(swsusp_resume_device));
 }
 
@@ -980,7 +980,7 @@  static ssize_t resume_store(struct kobject *kobj, struct kobj_attribute *attr,
 	if (sscanf(buf, "%u:%u", &maj, &min) != 2)
 		goto out;
 
-	res = MKDEV(maj,min);
+	res = MKDEV(maj, min);
 	if (maj != MAJOR(res) || min != MINOR(res))
 		goto out;
 
@@ -1040,7 +1040,7 @@  static ssize_t reserved_size_store(struct kobject *kobj,
 
 power_attr(reserved_size);
 
-static struct attribute * g[] = {
+static struct attribute *g[] = {
 	&disk_attr.attr,
 	&resume_attr.attr,
 	&image_size_attr.attr,
@@ -1067,7 +1067,7 @@  static int __init resume_setup(char *str)
 	if (noresume)
 		return 1;
 
-	strncpy( resume_file, str, 255 );
+	strncpy(resume_file, str, 255);
 	return 1;
 }