Cleanup write-only variable, suggested by D Binderman. Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>
--- commit e4bb3afa65dd97dd64fee857823040a963091444 tree ee5af7ebe992cbcffd3824f853411a26c3cd085a parent 7f5ff90d786d5a8ef2488334f86e59ded46d9b72 author Pavel <[EMAIL PROTECTED]> Sat, 02 Dec 2006 20:24:40 +0100 committer Pavel <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/