Skip to content

Commit 6ada7ba

Browse files
Xiang Chenrafaeljw
authored andcommitted
PM: hibernate: fix white space in a few places
In hibernate.c, some places lack of spaces while some places have redundant spaces. So fix them. Signed-off-by: Xiang Chen <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 59679d9 commit 6ada7ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/power/hibernate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ power_attr(disk);
10621062
static ssize_t resume_show(struct kobject *kobj, struct kobj_attribute *attr,
10631063
char *buf)
10641064
{
1065-
return sprintf(buf,"%d:%d\n", MAJOR(swsusp_resume_device),
1065+
return sprintf(buf, "%d:%d\n", MAJOR(swsusp_resume_device),
10661066
MINOR(swsusp_resume_device));
10671067
}
10681068

@@ -1162,7 +1162,7 @@ static ssize_t reserved_size_store(struct kobject *kobj,
11621162

11631163
power_attr(reserved_size);
11641164

1165-
static struct attribute * g[] = {
1165+
static struct attribute *g[] = {
11661166
&disk_attr.attr,
11671167
&resume_offset_attr.attr,
11681168
&resume_attr.attr,
@@ -1190,7 +1190,7 @@ static int __init resume_setup(char *str)
11901190
if (noresume)
11911191
return 1;
11921192

1193-
strncpy( resume_file, str, 255 );
1193+
strncpy(resume_file, str, 255);
11941194
return 1;
11951195
}
11961196

0 commit comments

Comments
 (0)