[PATCH 01/10] xfree86/xv: Remove useless NULL check from ClipNotify
ville.syrjala at nokia.com
ville.syrjala at nokia.com
Fri Oct 29 11:18:57 PDT 2010
From: Ville Syrjälä <ville.syrjala at nokia.com>
WinPriv->PortRec should never be NULL as WinPriv itself would be removed
from the list when the port is removed from the window.
Signed-off-by: Ville Syrjälä <ville.syrjala at nokia.com>
---
hw/xfree86/common/xf86xv.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c
index 4676130..532f0b2 100644
--- a/hw/xfree86/common/xf86xv.c
+++ b/hw/xfree86/common/xf86xv.c
@@ -1120,8 +1120,6 @@ xf86XVClipNotify(WindowPtr pWin, int dx, int dy)
while(WinPriv) {
pPriv = WinPriv->PortRec;
- if(!pPriv) goto next;
-
if(pPriv->pCompositeClip && pPriv->FreeCompositeClip)
RegionDestroy(pPriv->pCompositeClip);
@@ -1156,7 +1154,6 @@ xf86XVClipNotify(WindowPtr pWin, int dx, int dy)
}
}
-next:
pPrev = WinPriv;
WinPriv = WinPriv->next;
}
--
1.7.2.2
More information about the xorg-devel
mailing list