From 5c47973c249cf22a4750de42880012269de555f2 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 15 Apr 2012 16:31:57 +0200 Subject: [PATCH] mmdevapi: Remove superfluous NULL pointer check before HeapFree (Smatch). --- dlls/mmdevapi/devenum.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/mmdevapi/devenum.c b/dlls/mmdevapi/devenum.c index 866aa063415..075313cd5d8 100644 --- a/dlls/mmdevapi/devenum.c +++ b/dlls/mmdevapi/devenum.c @@ -301,8 +301,7 @@ static MMDevice *MMDevice_Create(WCHAR *name, GUID *id, EDataFlow flow, DWORD st }else if(cur->ref > 0) WARN("Modifying an MMDevice with postitive reference count!\n"); - if(cur->drv_id) - HeapFree(GetProcessHeap(), 0, cur->drv_id); + HeapFree(GetProcessHeap(), 0, cur->drv_id); cur->drv_id = name; cur->flow = flow;