x86: convert cpu notifier to return encapsulate errno value
[safe/jmp/linux-2.6] / arch / x86 / kernel / cpu / mcheck / therm_throt.c
index 81c499e..e1a0a3b 100644 (file)
@@ -190,7 +190,7 @@ thermal_throttle_cpu_callback(struct notifier_block *nfb,
                mutex_unlock(&therm_cpu_lock);
                break;
        }
-       return err ? NOTIFY_BAD : NOTIFY_OK;
+       return notifier_from_errno(err);
 }
 
 static struct notifier_block thermal_throttle_cpu_notifier __cpuinitdata =