diff mbox

PM/hibernate: Delete the redundant parameters of the swsusp_alloc()

Message ID "000001d2d366$a0337ee0$e09a7ca0$@luo"@samsung.com (mailing list archive)
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

BaoJun Luo May 23, 2017, 1:47 a.m. UTC
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 mbox

Patch

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, &copy_bm, nr_pages, nr_highmem)) {
+	if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) {
 		printk(KERN_ERR "PM: Memory allocation failed\n");
 		return -ENOMEM;
 	}