summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorKyungsik Lee <kyungsik.lee@lge.com>2018-01-16 02:19:43 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-01-17 12:41:22 +0100
commit8ffdfe35b8a67e509dee5719807b7f88ed2cda7e (patch)
treed5296ab49a03a623d469af37a84d4d27573c1ce5 /kernel/power
parentblock, scsi: Fix race between SPI domain validation and system suspend (diff)
downloadlinux-8ffdfe35b8a67e509dee5719807b7f88ed2cda7e.tar.xz
linux-8ffdfe35b8a67e509dee5719807b7f88ed2cda7e.zip
PM / hibernate: Drop unused parameter of enough_swap
Parameter flags is no longer used, remove it. Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 293ead59eccc..a46be1261c09 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -879,7 +879,7 @@ out_clean:
* space avaiable from the resume partition.
*/
-static int enough_swap(unsigned int nr_pages, unsigned int flags)
+static int enough_swap(unsigned int nr_pages)
{
unsigned int free_swap = count_swap_pages(root_swap, 1);
unsigned int required;
@@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags)
return error;
}
if (flags & SF_NOCOMPRESS_MODE) {
- if (!enough_swap(pages, flags)) {
+ if (!enough_swap(pages)) {
pr_err("Not enough free swap\n");
error = -ENOSPC;
goto out_finish;