dmloader: Remove redundant "not NULL" check of the pDesc arg.
Michael Stefaniuc
mstefani at redhat.de
Sun May 16 18:11:57 CDT 2010
It is already tested at the beginning of the function. Found by
coccicheck.
---
dlls/dmloader/container.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/dmloader/container.c b/dlls/dmloader/container.c
index a1fa878..a267816 100644
--- a/dlls/dmloader/container.c
+++ b/dlls/dmloader/container.c
@@ -145,8 +145,7 @@ static HRESULT WINAPI IDirectMusicContainerImpl_IDirectMusicContainer_EnumObject
if (strlenW (pContainedObject->wszAlias) > DMUS_MAX_FILENAME)
result = DMUS_S_STRING_TRUNCATED;
}
- if (pDesc)
- *pDesc = pContainedObject->Desc;
+ *pDesc = pContainedObject->Desc;
return result;
}
dwCount++;
--
1.7.1
More information about the wine-patches
mailing list