Skip to content

Commit

Permalink
PM: hibernate: fix white space in a few places
Browse files Browse the repository at this point in the history
In hibernate.c, some places lack of spaces while some places have
redundant spaces. So fix them.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Xiang Chen authored and Rafael J. Wysocki committed Jul 14, 2020
1 parent 59679d9 commit 6ada7ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,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));
}

Expand Down Expand Up @@ -1162,7 +1162,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_offset_attr.attr,
&resume_attr.attr,
Expand Down Expand Up @@ -1190,7 +1190,7 @@ static int __init resume_setup(char *str)
if (noresume)
return 1;

strncpy( resume_file, str, 255 );
strncpy(resume_file, str, 255);
return 1;
}

Expand Down

0 comments on commit 6ada7ba

Please sign in to comment.