[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 72787f9..42a6287 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();
-}