xf86-video-intel: src/intel_module.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Jun 12 13:21:11 PDT 2012


 src/intel_module.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 6138f7434a6fb014299a7e9a8392ef962c8cba30
Author: Cyril Brulebois <kibi at debian.org>
Date:   Tue Jun 12 21:19:14 2012 +0100

    Fix up braindamage in previous commit.
    
    ickle: Fixing up my idiotic change, obviously too much birthday cake.

diff --git a/src/intel_module.c b/src/intel_module.c
index d6b4eb9..af82cff 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -298,11 +298,8 @@ extern XF86ConfigPtr xf86configptr;
 static XF86ConfDevicePtr
 _xf86findDriver(const char *ident, XF86ConfDevicePtr p)
 {
-	if (p->dev_driver == NULL)
-		return NULL;
-
 	while (p) {
-		if (xf86nameCompare(ident, p->dev_driver) == 0)
+		if (p->dev_driver && xf86nameCompare(ident, p->dev_driver) == 0)
 			return p;
 
 		p = p->list.next;


More information about the xorg-commit mailing list