user32/tests: Remove unreachable break after return (Smatch).

Michael Stefaniuc mstefani at redhat.de
Fri Sep 5 15:02:57 CDT 2008


---
 dlls/user32/tests/dde.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c
index cc5e47c..968cd26 100644
--- a/dlls/user32/tests/dde.c
+++ b/dlls/user32/tests/dde.c
@@ -2143,7 +2143,6 @@ static HDDEDATA CALLBACK server_end_to_end_callback(UINT uType, UINT uFmt, HCONV
         ok(msg_index == 1 || msg_index == 7 || msg_index == 13 || msg_index == 19,
                              "Expected 1, 7, 13 or 19, got %d\n", msg_index);
         return (HDDEDATA)TRUE;
-        break;
     }
 
     case XTYP_CONNECT:
@@ -2167,7 +2166,6 @@ static HDDEDATA CALLBACK server_end_to_end_callback(UINT uType, UINT uFmt, HCONV
         ok(size == 14, "Expected 14, got %d, msg_index=%d\n", size, msg_index);
 
         return (HDDEDATA) TRUE;
-        break;
     }
     case XTYP_CONNECT_CONFIRM:
     {
@@ -2262,10 +2260,7 @@ static HDDEDATA CALLBACK server_end_to_end_callback(UINT uType, UINT uFmt, HCONV
         return (HDDEDATA) DDE_FACK;
     }
     case XTYP_DISCONNECT:
-    {
         return (HDDEDATA) TRUE;
-        break;
-    }
 
     default:
         ok(FALSE, "Unhandled msg: %08x, msg_index=%d\n", uType, msg_index);
@@ -2281,10 +2276,7 @@ static HDDEDATA CALLBACK client_end_to_end_callback(UINT uType, UINT uFmt, HCONV
     switch (uType)
     {
     case XTYP_DISCONNECT:
-    {
         return (HDDEDATA) TRUE;
-        break;
-    }
 
     default:
         ok(FALSE, "Unhandled msg: %08x\n", uType);
-- 
1.6.0.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080905/6ec5567c/attachment.pgp 


More information about the wine-patches mailing list