[dsound] Remove unnecessary NULL pointer check (coverity)

Robert Reif reif at earthlink.net
Fri Apr 7 22:08:52 CDT 2006


Remove unnecessary NULL pointer check.
-------------- next part --------------
Index: dlls/dsound/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/capture.c,v
retrieving revision 1.60
diff -p -u -r1.60 capture.c
--- dlls/dsound/capture.c	16 Jan 2006 20:40:21 -0000	1.60
+++ dlls/dsound/capture.c	8 Apr 2006 03:05:53 -0000
@@ -793,10 +793,7 @@ IDirectSoundCaptureBufferImpl_Release( L
 	    IDsCaptureDriverBuffer_Release(This->device->hwbuf);
 
         /* remove from DirectSoundCaptureDevice */
-        if (This->device)
-            This->device->capture_buffer = NULL;
-        else
-            ERR("does not reference dsound\n");
+        This->device->capture_buffer = NULL;
 
         if (This->notify)
 	    IDirectSoundNotify_Release((LPDIRECTSOUNDNOTIFY)This->notify);


More information about the wine-patches mailing list