summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2013-09-18 19:36:00 +0200
committerGuillem Jover <guillem@hadrons.org>2013-09-19 06:17:21 +0200
commit9ff6c53d427c785898ccf34f7e322be0c8d0c2c3 (patch)
tree537d01a4a8a0b9c4f59706450dbc162e03ffc4b5
parent6250d5c052768b706dd897e5db399fa9ee4c2c1e (diff)
Do not assign to variables inside if conditionals
Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r--src/glide_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glide_driver.c b/src/glide_driver.c
index be1f079..897bebf 100644
--- a/src/glide_driver.c
+++ b/src/glide_driver.c
@@ -297,7 +297,8 @@ GLIDEProbe(DriverPtr drv, int flags)
ScrnInfoPtr pScrn;
int GlideDevice;
- if ((numdevList = xf86MatchDevice(GLIDE_DRIVER_NAME, &devList)) <= 0)
+ numdevList = xf86MatchDevice(GLIDE_DRIVER_NAME, &devList);
+ if (numdevList <= 0)
return FALSE;
num_sst = glide_get_num_boards();
@@ -322,7 +323,8 @@ GLIDEProbe(DriverPtr drv, int flags)
pScrn = NULL;
/* Allocate a ScrnInfoRec and claim the slot */
- if ((pScrn = xf86AllocateScreen(drv, 0))) {
+ pScrn = xf86AllocateScreen(drv, 0);
+ if (pScrn) {
GLIDEPtr pGlide;
xf86AddEntityToScreen(pScrn, entityIndex);