]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PM: hibernate: Fix style issues in save_compressed_image()
authorMario Limonciello (AMD) <superm1@kernel.org>
Thu, 6 Nov 2025 04:51:07 +0000 (22:51 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Nov 2025 15:53:57 +0000 (16:53 +0100)
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) <superm1@kernel.org>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20251106045158.3198061-4-superm1@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/swap.c

index e0441483dbee748fd7be3135eb9be7227a28d7a7..70ae21f7370d4c88263291b2887e80fae32cc191 100644 (file)
@@ -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 @@ out_clean:
                }
                vfree(data);
        }
-       if (page) free_page((unsigned long)page);
+       if (page)
+               free_page((unsigned long)page);
 
        return ret;
 }