[PATCH] swsusp: get rid of unnecessary wrapper function
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 30 Oct 2005 23:00:00 +0000 (15:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:15 +0000 (17:37 -0800)
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>
kernel/power/snapshot.c

index 72787f925630b9e71150a43aa899ff469b6593b5..42a6287043983e93a67d54d5168c56df62a2e51c 100644 (file)
@@ -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();
-}