2018-01-16 01:21:58

by Kyungsik Lee

[permalink] [raw]
Subject: [PATCH] PM / Hibernate: Remove unused parameter of enough_swap

Parameter flags is no longer used, remove it.

Signed-off-by: Kyungsik Lee <[email protected]>
---
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


2018-01-18 21:38:44

by Pavel Machek

[permalink] [raw]
Subject: Re: [PATCH] PM / Hibernate: Remove unused parameter of enough_swap

On Tue 2018-01-16 10:19:43, Kyungsik Lee wrote:
> Parameter flags is no longer used, remove it.
>
> Signed-off-by: Kyungsik Lee <[email protected]>

Acked-by: Pavel Machek <[email protected]>

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


Attachments:
(No filename) (338.00 B)
signature.asc (188.00 B)
Digital signature
Download all attachments