Revert "win32: implemented timeouts in serial socket reads"
[deb_libcec.git] / src / lib / platform / windows / os-socket.h
index 86750c50b9bc4e51d5abe56d8ee8a09f253a4341..5174cba1aaa5e5db4535a345a844c10d005d47b2 100644 (file)
@@ -95,8 +95,6 @@ namespace PLATFORM
 
   inline ssize_t SerialSocketRead(serial_socket_t socket, int *iError, void* data, size_t len, uint64_t iTimeoutMs /*= 0*/)
   {
-    *iError = 0;
-
     if (len != (DWORD)len)
     {
       *iError = EINVAL;