Dmitry Timoshkov : ntdll: Avoid a needless goto.

Alexandre Julliard julliard at winehq.org
Tue Sep 3 13:38:04 CDT 2013


Module: wine
Branch: master
Commit: c25776a98149642ce7670a9bbbab5b3e5b95b5e6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c25776a98149642ce7670a9bbbab5b3e5b95b5e6

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Sep  3 17:24:52 2013 +0900

ntdll: Avoid a needless goto.

---

 dlls/ntdll/serial.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/serial.c b/dlls/ntdll/serial.c
index de699ef..b4f9aa9 100644
--- a/dlls/ntdll/serial.c
+++ b/dlls/ntdll/serial.c
@@ -1322,7 +1322,7 @@ NTSTATUS COMM_DeviceIoControl(HANDLE hDevice,
             attr.SecurityQualityOfService = NULL;
             status = NtCreateEvent(&hev, EVENT_ALL_ACCESS, &attr, SynchronizationEvent, FALSE);
 
-            if (status) goto done;
+            if (status) return status;
         }
         status = io_control(hDevice, hev, UserApcRoutine, UserApcContext,
                             piosb, dwIoControlCode, lpInBuffer, nInBufferSize,
@@ -1340,6 +1340,5 @@ NTSTATUS COMM_DeviceIoControl(HANDLE hDevice,
     else status = io_control(hDevice, hEvent, UserApcRoutine, UserApcContext,
                              piosb, dwIoControlCode, lpInBuffer, nInBufferSize,
                              lpOutBuffer, nOutBufferSize);
-done:
     return status;
 }




More information about the wine-cvs mailing list