Michael Stefaniuc : quartz: Remove an unused return variable (coccinelle).

Alexandre Julliard julliard at winehq.org
Tue Mar 12 16:56:16 CDT 2019


Module: wine
Branch: master
Commit: 91b53147f14d0ddcaa2ca26bb81737c1648b3465
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=91b53147f14d0ddcaa2ca26bb81737c1648b3465

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Mar 12 21:19:18 2019 +0100

quartz: Remove an unused return variable (coccinelle).

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/memallocator.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c
index 477c63a..4e366f3 100644
--- a/dlls/quartz/memallocator.c
+++ b/dlls/quartz/memallocator.c
@@ -196,7 +196,6 @@ static HRESULT WINAPI BaseMemAllocator_SetProperties(IMemAllocator * iface, ALLO
 static HRESULT WINAPI BaseMemAllocator_GetProperties(IMemAllocator * iface, ALLOCATOR_PROPERTIES *pProps)
 {
     BaseMemAllocator *This = impl_from_IMemAllocator(iface);
-    HRESULT hr = S_OK;
 
     TRACE("(%p)->(%p)\n", This, pProps);
 
@@ -206,7 +205,7 @@ static HRESULT WINAPI BaseMemAllocator_GetProperties(IMemAllocator * iface, ALLO
     }
     LeaveCriticalSection(This->pCritSect);
 
-    return hr;
+    return S_OK;
 }
 
 static HRESULT WINAPI BaseMemAllocator_Commit(IMemAllocator * iface)




More information about the wine-cvs mailing list