[PATCH] wined3d: remove now useless NULL check (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat May 25 02:40:54 CDT 2013


CID 1025792

got superflous after

commit 9287bb80dc974235d43d5ee4fadc86e1a11dbfeb
Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun May 19 23:13:30 2013 +0200

    d3d: d3d9ex does not do video memory accounting for D3DPOOL_DEFAULT resources.

which references this variable before.

Ciao, Marfcus
---
 dlls/wined3d/resource.c |    3 +--
 1 file changed, 1 insertion(+), 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)
-- 
1.7.10.4




More information about the wine-patches mailing list