]> git.neil.brown.name Git - history.git/commitdiff
ACPI: Fix check of schedule_work()'s return value (Ducrot Bruno)
authorAndy Grover <agrover@groveronline.com>
Fri, 6 Dec 2002 01:40:05 +0000 (17:40 -0800)
committerAndy Grover <agrover@groveronline.com>
Fri, 6 Dec 2002 01:40:05 +0000 (17:40 -0800)
drivers/acpi/osl.c

index a9261301f83bc4af09441f817b8c26bb570d4875..300e55c858c375e09ce17960dad25ce4d1521a15 100644 (file)
@@ -650,7 +650,7 @@ acpi_os_queue_for_execution(
                task = (void *)(dpc+1);
                INIT_WORK(task, acpi_os_schedule_exec, (void*)dpc);
 
-               if (schedule_work(task) < 0) {
+               if (!schedule_work(task)) {
                        ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Call to schedule_work() failed.\n"));
                        kfree(dpc);
                        status = AE_ERROR;