[PATCH] dmime: remove useless NULL check (Coverity)

Marcus Meissner marcus at jet.franken.de
Tue Jul 22 02:07:17 CDT 2014


  pItem = DMUS_PMSGToItem(pPMSG);

just adds an offset to pPMSG which was checked for NULL before.

1225838 Logically dead code
---
 dlls/dmime/performance.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 92e72fe..6de3b66 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -388,9 +388,6 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_SendPMsg(IDirectMusicPerforma
     return E_POINTER;
   }
   pItem = DMUS_PMSGToItem(pPMSG);
-  if (NULL == pItem) {
-    return E_POINTER;
-  }
   if (pItem->bInUse) {
     return DMUS_E_ALREADY_SENT;
   }
-- 
1.8.4.5




More information about the wine-patches mailing list