Messages in this thread Patch in this message | | | Date | Wed, 6 Jun 2007 13:52:52 -0700 | From | Venki Pallipadi <> | 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@intel.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |