[PATCH v2 01/15] xfree86/xv: Remove useless NULL check from ClipNotify

ville.syrjala at nokia.com ville.syrjala at nokia.com
Tue Nov 2 11:05:47 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 948f82d..b6a9bf6 100644
--- a/hw/xfree86/common/xf86xv.c
+++ b/hw/xfree86/common/xf86xv.c
@@ -1123,8 +1123,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);
 
@@ -1159,7 +1157,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