[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 6 Jun 2007 13:52:52 -0700
From: Venki Pallipadi <venkatesh.pallipadi@...el.com>
To: Len Brown <lenb@...nel.org>
Cc: Adam Belay <abelay@...ell.com>, Len Brown <len.brown@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...l.org>,
Shaohua Li <shaohua.li@...el.com>, linux-acpi@...r.kernel.org
Subject: [PATCH 4/8] cpuidle: fis the uninitialized variable in sysfs routine
Fix the uninitialized usage of ret.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>
Index: linux-2.6.22-rc-mm/drivers/cpuidle/sysfs.c
===================================================================
--- linux-2.6.22-rc-mm.orig/drivers/cpuidle/sysfs.c 2007-06-04 15:44:17.000000000 -0700
+++ linux-2.6.22-rc-mm/drivers/cpuidle/sysfs.c 2007-06-04 15:46:49.000000000 -0700
@@ -301,7 +301,7 @@
*/
int cpuidle_add_driver_sysfs(struct cpuidle_device *device)
{
- int i, ret;
+ int i, ret = -ENOMEM;
struct cpuidle_state_kobj *kobj;
/* state statistics */
-
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