From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
Subject: [PATCH 1/4] swsusp: get rid of unnecessary wrapper function
Date: Mon, 17 Oct 2005 23:40:19 +0200 [thread overview]
Message-ID: <200510172340.20038.rjw@sisk.pl> (raw)
In-Reply-To: <200510172336.53194.rjw@sisk.pl>
The following patch merges two functions in a trivial way.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Index: linux-2.6.14-rc4-mm1/kernel/power/snapshot.c
===================================================================
--- linux-2.6.14-rc4-mm1.orig/kernel/power/snapshot.c 2005-10-17 23:28:36.000000000 +0200
+++ linux-2.6.14-rc4-mm1/kernel/power/snapshot.c 2005-10-17 23:28:40.000000000 +0200
@@ -384,7 +384,7 @@
return 0;
}
-static int suspend_prepare_image(void)
+asmlinkage int swsusp_save(void)
{
int error;
@@ -433,9 +433,3 @@
printk("swsusp: critical section/: done (%d pages copied)\n", nr_copy_pages );
return 0;
}
-
-
-asmlinkage int swsusp_save(void)
-{
- return suspend_prepare_image();
-}
next prev parent reply other threads:[~2005-10-17 22:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 21:36 [PATCH 0/4] swsusp: more cleanups Rafael J. Wysocki
2005-10-17 21:40 ` Rafael J. Wysocki [this message]
2005-10-17 23:37 ` [PATCH 1/4] swsusp: get rid of unnecessary wrapper function Pavel Machek
2005-10-17 21:50 ` [PATCH 2/4] swsusp: clean up resume error path Rafael J. Wysocki
2005-10-17 23:47 ` Pavel Machek
2005-10-18 9:17 ` Rafael J. Wysocki
2005-10-21 13:28 ` Pavel Machek
2005-10-17 21:58 ` [PATCH 3/4] swsusp: two simplifications Rafael J. Wysocki
2005-10-17 23:54 ` Pavel Machek
2005-10-17 22:13 ` [PATCH 4/4] swsusp: reduce the use of global variables Rafael J. Wysocki
2005-10-17 23:56 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510172340.20038.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®