xfree86/xv: Remove useless NULL check from ClipNotify
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@nokia.com> Reviewed-by: Luc Verhaegen <luc.verhaegen@basyskom.de>
This commit is contained in:
		
							parent
							
								
									23e3d1f233
								
							
						
					
					
						commit
						b02858b5af
					
				| 
						 | 
					@ -1120,8 +1120,6 @@ xf86XVClipNotify(WindowPtr pWin, int dx, int dy)
 | 
				
			||||||
  while(WinPriv) {
 | 
					  while(WinPriv) {
 | 
				
			||||||
     pPriv = WinPriv->PortRec;
 | 
					     pPriv = WinPriv->PortRec;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     if(!pPriv) goto next;
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
     if(pPriv->pCompositeClip && pPriv->FreeCompositeClip)
 | 
					     if(pPriv->pCompositeClip && pPriv->FreeCompositeClip)
 | 
				
			||||||
	RegionDestroy(pPriv->pCompositeClip);
 | 
						RegionDestroy(pPriv->pCompositeClip);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1156,7 +1154,6 @@ xf86XVClipNotify(WindowPtr pWin, int dx, int dy)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
     }
 | 
					     }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
next:
 | 
					 | 
				
			||||||
     pPrev = WinPriv;
 | 
					     pPrev = WinPriv;
 | 
				
			||||||
     WinPriv = WinPriv->next;
 | 
					     WinPriv = WinPriv->next;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue