From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Jiri Slaby <jslaby@suse.cz>
Cc: linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH 2/2] PM / Hibernate: swap, remove useless check from swsusp_read
Date: Thu, 28 Jan 2010 00:06:07 +0100 [thread overview]
Message-ID: <201001280006.07796.rjw@sisk.pl> (raw)
In-Reply-To: <1264610778-13242-2-git-send-email-jslaby@suse.cz>
On Wednesday 27 January 2010, Jiri Slaby wrote:
> It will never reach here if the sws_resume_bdev is erratic.
> swsusp_read is called only from software_resume, but after
> swsusp_check which would catch the error state.
>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> Cc: Rafael J. Wysocki <rjw@sisk.pl>
> Cc: Pavel Machek <pavel@ucw.cz>
Applied.
> ---
> kernel/power/swap.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/kernel/power/swap.c b/kernel/power/swap.c
> index 09b2b0a..1d57573 100644
> --- a/kernel/power/swap.c
> +++ b/kernel/power/swap.c
> @@ -657,10 +657,6 @@ int swsusp_read(unsigned int *flags_p)
> struct swsusp_info *header;
>
> *flags_p = swsusp_header->flags;
> - if (IS_ERR(resume_bdev)) {
> - pr_debug("PM: Image device not initialised\n");
> - return PTR_ERR(resume_bdev);
> - }
>
> memset(&snapshot, 0, sizeof(struct snapshot_handle));
> error = snapshot_write_next(&snapshot, PAGE_SIZE);
>
Rafael
next prev parent reply other threads:[~2010-01-27 23:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-27 16:46 [PATCH 1/2] PM: really deprecate deprecated user ioctls Jiri Slaby
2010-01-27 16:46 ` [PATCH 2/2] PM / Hibernate: swap, remove useless check from swsusp_read Jiri Slaby
2010-01-27 23:06 ` Rafael J. Wysocki [this message]
2010-01-27 19:48 ` [PATCH 1/2] PM: really deprecate deprecated user ioctls Pavel Machek
2010-01-27 23:05 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2010-01-27 10:57 [PATCH 1/2] PM: remove " Jiri Slaby
2010-01-27 10:57 ` [PATCH 2/2] PM / Hibernate: swap, remove useless check from swsusp_read Jiri Slaby
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=201001280006.07796.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.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®