[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 86531ab4ee5517dcf86676641fcae415cad4f980..e7e9a693953a7bb58f37a0b446c9f7e6942c74b8 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);