1
0

PM: hibernate: Fix up white space that does not follow coding style

Fix up white space usage that does not follow the kernel coding style
rules in several places in snapshot.c.

Signed-off-by: Darshan Rathod <darshanrathod475@gmail.com>
Link: https://patch.msgid.link/20250716124216.64329-1-darshanrathod475@gmail.com
[ rjw: New subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Darshan Rathod
2025-07-16 12:42:16 +00:00
committed by Rafael J. Wysocki
parent dbd4bccd96
commit f633c1a236

View File

@@ -1536,7 +1536,7 @@ static unsigned long copy_data_pages(struct memory_bitmap *copy_bm,
memory_bm_position_reset(orig_bm);
memory_bm_position_reset(copy_bm);
copy_pfn = memory_bm_next_pfn(copy_bm);
for(;;) {
for (;;) {
pfn = memory_bm_next_pfn(orig_bm);
if (unlikely(pfn == BM_END_OF_MAP))
break;
@@ -2161,13 +2161,13 @@ static const char *check_image_kernel(struct swsusp_info *info)
{
if (info->version_code != LINUX_VERSION_CODE)
return "kernel version";
if (strcmp(info->uts.sysname,init_utsname()->sysname))
if (strcmp(info->uts.sysname, init_utsname()->sysname))
return "system type";
if (strcmp(info->uts.release,init_utsname()->release))
if (strcmp(info->uts.release, init_utsname()->release))
return "kernel release";
if (strcmp(info->uts.version,init_utsname()->version))
if (strcmp(info->uts.version, init_utsname()->version))
return "version";
if (strcmp(info->uts.machine,init_utsname()->machine))
if (strcmp(info->uts.machine, init_utsname()->machine))
return "machine";
return NULL;
}
@@ -2361,7 +2361,7 @@ static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm,
struct memory_bitmap *zero_bm)
{
unsigned long decoded_pfn;
bool zero;
bool zero;
int j;
for (j = 0; j < PAGE_SIZE / sizeof(long); j++) {