[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1516065583-29239-1-git-send-email-kyungsik.lee@lge.com>
Date: Tue, 16 Jan 2018 10:19:43 +0900
From: Kyungsik Lee <kyungsik.lee@....com>
To: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
chan.jeong@....com, raphael.andy.lee@...il.com,
Kyungsik Lee <kyungsik.lee@....com>
Subject: [PATCH] PM / Hibernate: Remove unused parameter of enough_swap
Parameter flags is no longer used, remove it.
Signed-off-by: Kyungsik Lee <kyungsik.lee@....com>
---
kernel/power/swap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 293ead5..a46be12 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle,
* 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;
--
1.9.1
Powered by blists - more mailing lists