Skip to content

Commit

Permalink
[PATCH] swsusp: get rid of unnecessary wrapper function
Browse files Browse the repository at this point in the history
The following patch merges two functions in a trivial way.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Oct 31, 2005
1 parent de49186 commit 2e32a43
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions kernel/power/snapshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static struct pbe *swsusp_alloc(unsigned nr_pages)
return pblist;
}

static int suspend_prepare_image(void)
asmlinkage int swsusp_save(void)
{
unsigned nr_pages;

Expand Down Expand Up @@ -433,9 +433,3 @@ static int suspend_prepare_image(void)
printk("swsusp: critical section/: done (%d pages copied)\n", nr_pages);
return 0;
}


asmlinkage int swsusp_save(void)
{
return suspend_prepare_image();
}

0 comments on commit 2e32a43

Please sign in to comment.