From 59a0e3d1f598badeb8876da78776a2bf7a65fe4f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 3 Oct 2015 09:49:57 +0200 Subject: [PATCH] d3d11: Remove useless NULL check (Coverity). Signed-off-by: Marcus Meissner --- dlls/d3d11/d3d11_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/d3d11/d3d11_main.c b/dlls/d3d11/d3d11_main.c index 5be4cd0ba92..efc346e4dd6 100644 --- a/dlls/d3d11/d3d11_main.c +++ b/dlls/d3d11/d3d11_main.c @@ -342,8 +342,7 @@ HRESULT WINAPI D3D11CreateDeviceAndSwapChain(IDXGIAdapter *adapter, D3D_DRIVER_T return S_OK; cleanup: - if (device) - ID3D11Device_Release(device); + ID3D11Device_Release(device); if (obtained_feature_level) *obtained_feature_level = 0; if (immediate_context) -- 2.11.4.GIT