[PATCH] shell32: Remove unused return variables (coccinelle)

Michael Stefaniuc mstefani at winehq.org
Tue Mar 12 15:19:17 CDT 2019


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/shell32/autocomplete.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 36b0c5d7bc..bd9b8725bb 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -923,13 +923,12 @@ static HRESULT WINAPI IAutoComplete2_fnEnable(
     BOOL fEnable)
 {
     IAutoCompleteImpl *This = impl_from_IAutoComplete2(iface);
-    HRESULT hr = S_OK;
 
     TRACE("(%p)->(%s)\n", This, (fEnable)?"true":"false");
 
     This->enabled = fEnable;
 
-    return hr;
+    return S_OK;
 }
 
 /******************************************************************************
@@ -1063,13 +1062,12 @@ static HRESULT WINAPI IAutoComplete2_fnGetOptions(
     DWORD *pdwFlag)
 {
     IAutoCompleteImpl *This = impl_from_IAutoComplete2(iface);
-    HRESULT hr = S_OK;
 
     TRACE("(%p) -> (%p)\n", This, pdwFlag);
 
     *pdwFlag = This->options;
 
-    return hr;
+    return S_OK;
 }
 
 /**************************************************************************
-- 
2.20.1




More information about the wine-devel mailing list