From 2b3a3bc9202f4e6f9886a08a4dfa597a83a5e933 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 26 Jun 2008 22:26:16 +0100 Subject: [PATCH] more formatting fixes --- hw/xfree86/drivers/modesetting/dri2.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/drivers/modesetting/dri2.c b/hw/xfree86/drivers/modesetting/dri2.c index eec80696b..7fd9fcae3 100644 --- a/hw/xfree86/drivers/modesetting/dri2.c +++ b/hw/xfree86/drivers/modesetting/dri2.c @@ -76,7 +76,8 @@ driEndClipNotify(ScreenPtr pScreen) driUnlock(pScreen); } -struct __DRILock { +struct __DRILock +{ unsigned int block_header; drm_hw_lock_t lock; unsigned int next_id; @@ -99,13 +100,13 @@ driScreenInit(ScreenPtr pScreen) dri2info.version = 1; dri2info.fd = ms->fd; dri2info.driverSareaSize = sizeof(struct __DRILock); - dri2info.driverName = "i915"; /* FIXME */ + dri2info.driverName = "i915"; /* FIXME */ dri2info.getPixmapHandle = driGetPixmapHandle; dri2info.beginClipNotify = driBeginClipNotify; - dri2info.endClipNotify = driEndClipNotify; + dri2info.endClipNotify = driEndClipNotify; p = DRI2ScreenInit(pScreen, &dri2info); - if (!p) + if (!p) return; DRILock = p;