Henri Verbeet : wined3d: Remove another redundant NULL check (LLVM/Clang).

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:26 CST 2008


Module: wine
Branch: master
Commit: b11dd542584c292d3d99f173a44552c63139b04e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b11dd542584c292d3d99f173a44552c63139b04e

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Oct 31 16:21:22 2008 +0100

wined3d: Remove another redundant NULL check (LLVM/Clang).

---

 dlls/wined3d/surface_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c
index 1c8de42..b7ee525 100644
--- a/dlls/wined3d/surface_base.c
+++ b/dlls/wined3d/surface_base.c
@@ -1539,7 +1539,7 @@ IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface,
     }
 
     if ((This->Flags & SFLAG_LOCKED) ||
-         ((Src != NULL) && (Src->Flags & SFLAG_LOCKED)))
+            (Src->Flags & SFLAG_LOCKED))
     {
         WARN(" Surface is busy, returning DDERR_SURFACEBUSY\n");
         return WINEDDERR_SURFACEBUSY;




More information about the wine-cvs mailing list