[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061202192541.GA4019@elf.ucw.cz>
Date: Sat, 2 Dec 2006 20:25:41 +0100
From: Pavel Machek <pavel@....cz>
To: kernel list <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...l.org>, dcb314@...mail.com
Subject: swsusp: kill write-only variable
Cleanup write-only variable, suggested by D Binderman.
Signed-off-by: Pavel Machek <pavel@...e.cz>
---
commit e4bb3afa65dd97dd64fee857823040a963091444
tree ee5af7ebe992cbcffd3824f853411a26c3cd085a
parent 7f5ff90d786d5a8ef2488334f86e59ded46d9b72
author Pavel <pavel@....ucw.cz> Sat, 02 Dec 2006 20:24:40 +0100
committer Pavel <pavel@....ucw.cz> Sat, 02 Dec 2006 20:24:40 +0100
kernel/power/disk.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/power/disk.c b/kernel/power/disk.c
index b1fb786..a049596 100644
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -40,12 +40,10 @@ dev_t swsusp_resume_device;
static void power_down(suspend_disk_method_t mode)
{
- int error = 0;
-
switch(mode) {
case PM_DISK_PLATFORM:
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
- error = pm_ops->enter(PM_SUSPEND_DISK);
+ pm_ops->enter(PM_SUSPEND_DISK);
break;
case PM_DISK_SHUTDOWN:
kernel_power_off();
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists