mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 10:30:02 +01:00
exa: don't need to check for NULL pointer if we already assumed it has a value
the alternative would be to check ps in the beginning of the function. Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Acked-by: Michel Dänzer <michel@daenzer.net>
This commit is contained in:
parent
96784f4fcb
commit
471f350c99
1 changed files with 6 additions and 8 deletions
14
exa/exa.c
14
exa/exa.c
|
|
@ -779,14 +779,12 @@ exaCloseScreen(int i, ScreenPtr pScreen)
|
||||||
unwrap(pExaScr, pScreen, BitmapToRegion);
|
unwrap(pExaScr, pScreen, BitmapToRegion);
|
||||||
unwrap(pExaScr, pScreen, CreateScreenResources);
|
unwrap(pExaScr, pScreen, CreateScreenResources);
|
||||||
#ifdef RENDER
|
#ifdef RENDER
|
||||||
if (ps) {
|
unwrap(pExaScr, ps, Composite);
|
||||||
unwrap(pExaScr, ps, Composite);
|
if (pExaScr->SavedGlyphs)
|
||||||
if (pExaScr->SavedGlyphs)
|
unwrap(pExaScr, ps, Glyphs);
|
||||||
unwrap(pExaScr, ps, Glyphs);
|
unwrap(pExaScr, ps, Trapezoids);
|
||||||
unwrap(pExaScr, ps, Trapezoids);
|
unwrap(pExaScr, ps, Triangles);
|
||||||
unwrap(pExaScr, ps, Triangles);
|
unwrap(pExaScr, ps, AddTraps);
|
||||||
unwrap(pExaScr, ps, AddTraps);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
xfree (pExaScr);
|
xfree (pExaScr);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue