提交 2e32a43e 编写于 作者: R Rafael J. Wysocki 提交者: Linus Torvalds

[PATCH] swsusp: get rid of unnecessary wrapper function

The following patch merges two functions in a trivial way.
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
Acked-by: NPavel Machek <pavel@suse.cz>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 de491861
......@@ -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();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册