xf86-video-intel: src/i830_lvds.c

Zhenyu Wang zhen at kemper.freedesktop.org
Wed Dec 10 21:53:38 PST 2008


 src/i830_lvds.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 80e2d90139dd99f50beb4f9353599608624b777d
Author: Zhenyu Wang <zhenyu.z.wang at intel.com>
Date:   Thu Dec 11 13:45:17 2008 +0800

    Let lid status be unknown if no acpi lid object found

diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 73993db..b1bf6ee 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -409,11 +409,9 @@ i830_lvds_acpi_lid_open(xf86OutputPtr output)
 
     lid_dir = opendir(ACPI_LID);
 
-    /* if acpi button loaded, but no lid device, assume no panel */
-    if (lid_dir == NULL) {
-	ret = LID_CLOSE;
+    /* no acpi lid object found */
+    if (lid_dir == NULL)
 	goto out;
-    }
 
     while (1) {
 	lid_dent = readdir(lid_dir);


More information about the xorg-commit mailing list