提交 8ffdfe35 编写于 作者: K Kyungsik Lee 提交者: Rafael J. Wysocki

PM / hibernate: Drop unused parameter of enough_swap

Parameter flags is no longer used, remove it.
Signed-off-by: NKyungsik Lee <kyungsik.lee@lge.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 203f8c25
...@@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle, ...@@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle,
* space avaiable from the resume partition. * 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 free_swap = count_swap_pages(root_swap, 1);
unsigned int required; unsigned int required;
...@@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags) ...@@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags)
return error; return error;
} }
if (flags & SF_NOCOMPRESS_MODE) { if (flags & SF_NOCOMPRESS_MODE) {
if (!enough_swap(pages, flags)) { if (!enough_swap(pages)) {
pr_err("Not enough free swap\n"); pr_err("Not enough free swap\n");
error = -ENOSPC; error = -ENOSPC;
goto out_finish; goto out_finish;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册