cpuidle: fis the uninitialized variable in sysfs routine
Subsystems (2)
PATCH 4/8 cpuidle: fis the uninitialized variable in sysfs routine
Fix the uninitialized usage of ret.
Signed-off-by Venkatesh Pallipadi <[email protected]>
drivers/cpuidle/sysfs.c +1 -1
@@ -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 */