* [PATCH] PM/hibernate: Delete the redundant parameters of the swsusp_alloc()
[not found] <CGME20170523014807epcas1p44d542b7f3bb7ed19f05a11b874231c55@epcas1p4.samsung.com>
@ 2017-05-23 1:47 ` BaoJun Luo
0 siblings, 0 replies; only message in thread
From: BaoJun Luo @ 2017-05-23 1:47 UTC (permalink / raw)
To: rjw, pavel; +Cc: linux-pm
>From 2a91f46951c676a96621ab7505e168a2dc619064 Mon Sep 17 00:00:00 2001
From: "baojun.luo" <baojun.luo@samsung.com>
Date: Mon, 22 May 2017 15:30:19 +0800
Subject: [PATCH] PM/hibernate: Delete the redundant parameters of the
swsusp_alloc()
The first parameter of swsusp_alloc has not been used. The patch to make
sure to delete the redundant parameters
Signed-off-by: baojun.luo <baojun.luo@samsung.com>
---
kernel/power/snapshot.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 3b1e0f3..0f8a039 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -1929,8 +1929,7 @@ static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
* also be located in the high memory, because of the way in which
* copy_data_pages() works.
*/
-static int swsusp_alloc(struct memory_bitmap *orig_bm,
- struct memory_bitmap *copy_bm,
+static int swsusp_alloc(struct memory_bitmap *copy_bm,
unsigned int nr_pages, unsigned int nr_highmem)
{
if (nr_highmem > 0) {
@@ -1976,7 +1975,7 @@ asmlinkage __visible int swsusp_save(void)
return -ENOMEM;
}
- if (swsusp_alloc(&orig_bm, ©_bm, nr_pages, nr_highmem)) {
+ if (swsusp_alloc(©_bm, nr_pages, nr_highmem)) {
printk(KERN_ERR "PM: Memory allocation failed\n");
return -ENOMEM;
}
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-23 1:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170523014807epcas1p44d542b7f3bb7ed19f05a11b874231c55@epcas1p4.samsung.com>
2017-05-23 1:47 ` [PATCH] PM/hibernate: Delete the redundant parameters of the swsusp_alloc() BaoJun Luo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.