lkml.org 
[lkml]   [2006]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: initcall warnings in 2.6.17
Hi!

This should fix

> > initcall at 0xffffffff80249307: software_resume+0x0/0xcf(): returned with error code -2

warning.

Signed-off-by: Pavel Machek <pavel@suse.cz>

diff --git a/kernel/power/disk.c b/kernel/power/disk.c
index 81d4d98..1019aca 100644
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -168,7 +168,7 @@ static int software_resume(void)
if (!swsusp_resume_device) {
if (!strlen(resume_file)) {
up(&pm_sem);
- return -ENOENT;
+ return 0;
}
swsusp_resume_device = name_to_dev_t(resume_file);
pr_debug("swsusp: Resume From Partition %s\n", resume_file);
--
Thanks for all the (sleeping) penguins.
-
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: 2006-05-02 13:32    [W:0.059 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site