Marcus Meissner : wined3d: Remove now useless NULL check (Coverity).

Alexandre Julliard julliard at winehq.org
Mon May 27 13:46:54 CDT 2013


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat May 25 09:40:54 2013 +0200

wined3d: Remove now useless NULL check (Coverity).

---

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

diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index 0e0678d..3d50652 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -169,8 +169,7 @@ void resource_cleanup(struct wined3d_resource *resource)
     resource->allocatedMemory = 0;
     resource->heapMemory = 0;
 
-    if (resource->device)
-        device_resource_released(resource->device, resource);
+    device_resource_released(resource->device, resource);
 }
 
 void resource_unload(struct wined3d_resource *resource)




More information about the wine-cvs mailing list