d3d11: Remove useless NULL check (Coverity).

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
This commit is contained in:
Marcus Meissner 2015-10-03 09:49:57 +02:00 committed by Alexandre Julliard
parent eb58fef698
commit 59a0e3d1f5

View File

@ -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)