From 096f21bb7a1217443d8a03529b1a2938518eb24f Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Wed, 23 Sep 2009 08:24:06 +0200 Subject: EXA: Fix some issues pointed out by clang. Remove dead variables, fix use of uninitialized values, that kind of thing. --- exa/exa_mixed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'exa/exa_mixed.c') diff --git a/exa/exa_mixed.c b/exa/exa_mixed.c index 01f87ba87..6aa73f2b6 100644 --- a/exa/exa_mixed.c +++ b/exa/exa_mixed.c @@ -57,7 +57,7 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth, PixmapPtr pPixmap; ExaPixmapPrivPtr pExaPixmap; int bpp; - size_t paddedWidth, datasize; + size_t paddedWidth; ExaScreenPriv(pScreen); if (w > 32767 || h > 32767) @@ -79,8 +79,6 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth, if (paddedWidth / 4 > 32767 || h > 32767) return NullPixmap; - datasize = h * paddedWidth; - /* We will allocate the system pixmap later if needed. */ pPixmap->devPrivate.ptr = NULL; pExaPixmap->sys_ptr = NULL; -- cgit v1.2.3