[PATCH 4/8] cpuidle: fis the uninitialized variable in sysfs routine

From: Venki Pallipadi
Date: Wed Jun 06 2007 - 16:56:50 EST




Fix the uninitialized usage of ret.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/