lkml.org 
[lkml]   [2005]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-pm] Re: [PATCH] Don't explode on swsusp failure to find swap
Hi!

> > diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c
> > --- a/kernel/power/swsusp.c
> > +++ b/kernel/power/swsusp.c
> > @@ -975,13 +975,6 @@ extern asmlinkage int swsusp_arch_resume
> >
> > asmlinkage int swsusp_save(void)
> > {
> > - int error = 0;
> > -
> > - if ((error = swsusp_swap_check())) {
> > - printk(KERN_ERR "swsusp: FATAL: cannot find swap device, try "
> > - "swapon -a!\n");
> > - return error;
> > - }
> > return suspend_prepare_image();
> > }
>
> I think we can move the contents of suspend_prepare_image() directly to
> swsusp_save(). It's not used anywhere else.

I thought about that, too, but bugfixes first, cleanups next.

Pavel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-01 23:01    [W:0.037 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site