[PATCH] qcap: Remove redundant filter state check

Nikolay Sivov nsivov at codeweavers.com
Mon Sep 11 04:54:04 CDT 2017


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/qcap/smartteefilter.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/qcap/smartteefilter.c b/dlls/qcap/smartteefilter.c
index 55fcde5511..27aee4705a 100644
--- a/dlls/qcap/smartteefilter.c
+++ b/dlls/qcap/smartteefilter.c
@@ -149,9 +149,7 @@ static HRESULT WINAPI SmartTeeFilter_Stop(IBaseFilter *iface)
     SmartTeeFilter *This = impl_from_IBaseFilter(iface);
     TRACE("(%p)\n", This);
     EnterCriticalSection(&This->filter.csFilter);
-    if(This->filter.state != State_Stopped) {
-        This->filter.state = State_Stopped;
-    }
+    This->filter.state = State_Stopped;
     LeaveCriticalSection(&This->filter.csFilter);
     return S_OK;
 }
-- 
2.14.1




More information about the wine-patches mailing list