Commit 0b6c10cb authored by Mario Limonciello (AMD)'s avatar Mario Limonciello (AMD) Committed by Rafael J. Wysocki
Browse files

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: default avatarMario Limonciello (AMD) <superm1@kernel.org>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20251106045158.3198061-4-superm1@kernel.org


Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 66ededc6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -689,7 +689,7 @@ static int save_compressed_image(struct swap_map_handle *handle,
	ktime_t start;
	ktime_t stop;
	size_t off;
	unsigned thr, run_threads, nr_threads;
	unsigned int thr, run_threads, nr_threads;
	unsigned char *page = NULL;
	struct cmp_data *data = NULL;
	struct crc_data *crc = NULL;
@@ -902,7 +902,8 @@ static int save_compressed_image(struct swap_map_handle *handle,
		}
		vfree(data);
	}
	if (page) free_page((unsigned long)page);
	if (page)
		free_page((unsigned long)page);

	return ret;
}