Skip to contentSkip to conversation

x86: sparse warning in therm_throt.c

PATCH New Harvey Harrison 1 participant 1 message Feb 5, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 5/8 x86: sparse warning in therm_throt.c

arch/x86/kernel/cpu/mcheck/therm_throt.c:121:2: warning: returning void-valued expression

---
 arch/x86/kernel/cpu/mcheck/therm_throt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/cpu/mcheck/therm_throt.c +1 -1
index 24885be..9b7e01d 100644
@@ -118,7 +118,7 @@ static __cpuinit int thermal_throttle_add_dev(struct sys_device *sys_dev)
 
 static __cpuinit void thermal_throttle_remove_dev(struct sys_device *sys_dev)
 {
-	return sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group);
+	sysfs_remove_group(&sys_dev->kobj, &thermal_throttle_attr_group);
 }
 
 /* Mutex protecting device creation against CPU hotplug */
Signature · 1 line
1.5.4.rc5.1138.g2602