Skip to content

Commit 0b6c10c

Browse files
superm1rafaeljw
authored andcommitted
PM: hibernate: Fix style issues in save_compressed_image()
Address two issues indicated by checkpatch: - Trailing statements should be on next line. - Prefer 'unsigned int' to bare use of 'unsigned'. Signed-off-by: Mario Limonciello (AMD) <[email protected]> [ rjw: Changelog edits ] Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 66ededc commit 0b6c10c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

kernel/power/swap.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ static int save_compressed_image(struct swap_map_handle *handle,
689689
ktime_t start;
690690
ktime_t stop;
691691
size_t off;
692-
unsigned thr, run_threads, nr_threads;
692+
unsigned int thr, run_threads, nr_threads;
693693
unsigned char *page = NULL;
694694
struct cmp_data *data = NULL;
695695
struct crc_data *crc = NULL;
@@ -902,7 +902,8 @@ static int save_compressed_image(struct swap_map_handle *handle,
902902
}
903903
vfree(data);
904904
}
905-
if (page) free_page((unsigned long)page);
905+
if (page)
906+
free_page((unsigned long)page);
906907

907908
return ret;
908909
}

0 commit comments

Comments
 (0)