Skip to contentSkip to conversation

cpuidle: fis the uninitialized variable in sysfs routine

PATCH In review Venki Pallipadi 1 participant 1 message Jun 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Fix the uninitialized usage of ret.

drivers/cpuidle/sysfs.c +1 -1
Index: linux-2.6.22-rc-mm/drivers/cpuidle/sysfs.c
===================================================================
@@ -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 */