diff --git a/Xext/dri2/dri2.c b/Xext/dri2/dri2.c index 0ca04fe157..3d017d1032 100644 --- a/Xext/dri2/dri2.c +++ b/Xext/dri2/dri2.c @@ -1355,12 +1355,11 @@ DRI2ConfigNotify(WindowPtr pWin, int x, int y, int w, int h, int bw, ScreenPtr pScreen = pDraw->pScreen; DRI2ScreenPtr ds = DRI2GetScreen(pScreen); DRI2DrawablePtr dd = DRI2GetDrawable(pDraw); - int ret; if (ds->ConfigNotify) { pScreen->ConfigNotify = ds->ConfigNotify; - ret = (*pScreen->ConfigNotify) (pWin, x, y, w, h, bw, pSib); + int ret = pScreen->ConfigNotify(pWin, x, y, w, h, bw, pSib); ds->ConfigNotify = pScreen->ConfigNotify; pScreen->ConfigNotify = DRI2ConfigNotify;