[PATCH 1/5] fix if() brackets in Probe function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



in Probe() the indention shows what's meant but there are no
brackets. Add them.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 src/driver.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/driver.c b/src/driver.c
index d8bb7b5..2004434 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -274,7 +274,7 @@ Probe(DriverPtr drv, int flags)
 					  NULL, NULL, NULL, NULL);
 	    }
 
-	    if (scrn)
+	    if (scrn) {
 		foundScreen = TRUE;
 		scrn->driverVersion = 1;
 		scrn->driverName = "modesetting";
@@ -291,6 +291,7 @@ Probe(DriverPtr drv, int flags)
 
 		xf86DrvMsg(scrn->scrnIndex, X_INFO,
 			   "using %s\n", dev ? dev : "default device");
+	    }
 	}
     }
 
-- 
1.7.9.1

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux