]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/processor_core.c
ACPI: elide a non-zero test on a result that is never 0
[linux-2.6-omap-h63xx.git] / drivers / acpi / processor_core.c
index 3a136f6c66a3fdc363741b09af61a8ca4a1117e3..ea5f628dcc15d4430c1d8c8ce60635d9995e5cd4 100644 (file)
@@ -674,6 +674,7 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
                result = PTR_ERR(pr->cdev);
                goto end;
        }
+
        printk(KERN_INFO PREFIX
                "%s is registered as cooling_device%d\n",
                device->dev.bus_id, pr->cdev->id);
@@ -682,12 +683,12 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device)
                                   &pr->cdev->device.kobj,
                                   "thermal_cooling");
        if (result)
-               return result;
+               printk(KERN_ERR PREFIX "Create sysfs link\n");
        result = sysfs_create_link(&pr->cdev->device.kobj,
                                   &device->dev.kobj,
                                   "device");
        if (result)
-               return result;
+               printk(KERN_ERR PREFIX "Create sysfs link\n");
 
        if (pr->flags.throttling) {
                printk(KERN_INFO PREFIX "%s [%s] (supports",
@@ -820,7 +821,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
        }
 
        processors[pr->id] = NULL;
-
+       processor_device_array[pr->id] = NULL;
        kfree(pr);
 
        return 0;