From ad2128825ba28551cfef203da017151e2eac32ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 May 2009 12:32:10 -0400 Subject: [PATCH] Only return FALSE when dri_bo_map() fails Small typo in the previous commit. --- src/i830_exa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i830_exa.c b/src/i830_exa.c index 3ca79334..d0ada02f 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -514,11 +514,12 @@ i830_uxa_prepare_access (PixmapPtr pixmap, uxa_access_t access) return FALSE; } } else { - if (dri_bo_map(bo, access == UXA_ACCESS_RW) != 0) + if (dri_bo_map(bo, access == UXA_ACCESS_RW) != 0) { xf86DrvMsg(scrn->scrnIndex, X_WARNING, "%s: bo map failed\n", __FUNCTION__); - return FALSE; + return FALSE; + } } pixmap->devPrivate.ptr = bo->virtual; } else { /* or not... */