summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2005-10-31 00:00:00 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-31 02:37:15 +0100
commit2e32a43efdc8175579cc91e8b620ac331376a437 (patch)
treefd46c6cf28d437fc53acc72cff03d2d796d834ff /kernel
parent[PATCH] swsusp: cleanups (diff)
downloadlinux-2e32a43efdc8175579cc91e8b620ac331376a437.tar.xz
linux-2e32a43efdc8175579cc91e8b620ac331376a437.zip
[PATCH] swsusp: get rid of unnecessary wrapper function
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/snapshot.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 72787f925630..42a628704398 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -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;
@@ -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();
-}