Skip to content

Commit eba74c2

Browse files
baojunluorafaeljw
authored andcommitted
PM / hibernate: Drop redundant parameter of swsusp_alloc()
The first parameter of swsusp_alloc is not used, so drop it. Signed-off-by: BaoJun Luo <baojun.luo@samsung.com> [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 49368a4 commit eba74c2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎kernel/power/snapshot.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,8 +1929,7 @@ static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
19291929
* also be located in the high memory, because of the way in which
19301930
* copy_data_pages() works.
19311931
*/
1932-
static int swsusp_alloc(struct memory_bitmap *orig_bm,
1933-
struct memory_bitmap *copy_bm,
1932+
static int swsusp_alloc(struct memory_bitmap *copy_bm,
19341933
unsigned int nr_pages, unsigned int nr_highmem)
19351934
{
19361935
if (nr_highmem > 0) {
@@ -1976,7 +1975,7 @@ asmlinkage __visible int swsusp_save(void)
19761975
return -ENOMEM;
19771976
}
19781977

1979-
if (swsusp_alloc(&orig_bm, &copy_bm, nr_pages, nr_highmem)) {
1978+
if (swsusp_alloc(&copy_bm, nr_pages, nr_highmem)) {
19801979
printk(KERN_ERR "PM: Memory allocation failed\n");
19811980
return -ENOMEM;
19821981
}

0 commit comments

Comments
 (0)