[PATCH] fix typo in acpi video brightness changes.
authorDave Jones <davej@redhat.com>
Sat, 24 Jun 2006 04:33:08 +0000 (00:33 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 24 Jun 2006 04:37:34 +0000 (21:37 -0700)
Prevent possible null dereference due to misplaced ;

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/acpi/video.c

index 86531ab..e7e9a69 100644 (file)
@@ -1645,7 +1645,7 @@ static int acpi_video_bus_put_devices(struct acpi_video_bus *video)
                        printk(KERN_WARNING PREFIX
                               "hhuuhhuu bug in acpi video driver.\n");
 
-               if (data->brightness);
+               if (data->brightness)
                        kfree(data->brightness->levels);
                kfree(data->brightness);
                kfree(data);