From mboxrd@z Thu Jan 1 00:00:00 1970 From: Venki Pallipadi Subject: [PATCH 4/8] cpuidle: fis the uninitialized variable in sysfs routine Date: Wed, 6 Jun 2007 13:52:52 -0700 Message-ID: <20070606205252.GD23906@linux-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga09.intel.com ([134.134.136.24]:16062 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934828AbXFFU4e (ORCPT ); Wed, 6 Jun 2007 16:56:34 -0400 Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Len Brown Cc: Adam Belay , Len Brown , Thomas Gleixner , linux-kernel , Andrew Morton , Shaohua Li , linux-acpi@vger.kernel.org Fix the uninitialized usage of ret. Signed-off-by: Venkatesh Pallipadi 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 */