[PATCH] dplayx: remove unnecessary assigment (Coverity)

Marcus Meissner marcus at jet.franken.de
Fri Apr 19 15:47:58 CDT 2013


CID 1002070

plist is a helper variable in the macro below and will be overwritten
and not used.

Ciao, Marcus
---
 dlls/dplayx/dplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c
index 30a2ee3..4529c5e 100644
--- a/dlls/dplayx/dplay.c
+++ b/dlls/dplayx/dplay.c
@@ -1857,7 +1857,7 @@ static HRESULT WINAPI IDirectPlay4Impl_DeletePlayerFromGroup( IDirectPlay4 *ifac
         return DPERR_INVALIDGROUP;
 
     /* Find the player */
-    if ( ( plist = DP_FindPlayer( This, player ) ) == NULL )
+    if ( DP_FindPlayer( This, player ) == NULL )
         return DPERR_INVALIDPLAYER;
 
     /* Remove the player shortcut from the group */
-- 
1.7.10.4




More information about the wine-patches mailing list