diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-09-23 08:24:06 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-09-23 08:24:06 +0200 |
commit | 096f21bb7a1217443d8a03529b1a2938518eb24f (patch) | |
tree | 6df1d363c36e65eeeafd0f555e6a564260395411 /exa/exa_mixed.c | |
parent | 824a09d856a5f750694e11d2fd2faaa3de705eaa (diff) |
EXA: Fix some issues pointed out by clang.
Remove dead variables, fix use of uninitialized values, that kind of thing.
Diffstat (limited to 'exa/exa_mixed.c')
-rw-r--r-- | exa/exa_mixed.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |