Module: wine Branch: master Commit: 719a02856df021cd48d7315d7047a8eafb3cd5c8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=719a02856df021cd48d7315d70...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Mar 7 22:16:48 2007 +0100
janitorial: Remove two redundant checks for NULL.
---
dlls/shell32/pidl.c | 3 +-- dlls/wined3d/device.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index 97cf051..af77eec 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -913,8 +913,7 @@ void WINAPI ILGlobalFree( LPITEMIDLIST pidl) { TRACE("%p\n", pidl);
- if (pidl) - Free(pidl); + Free(pidl); }
/************************************************************************* diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index fb4c17b..0998eec 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1507,7 +1507,7 @@ error: FIXME("(%p) Something's still holding the front buffer\n",This); } } - if(object) HeapFree(GetProcessHeap(), 0, object); + HeapFree(GetProcessHeap(), 0, object); return hr; }