summarylogtreecommitdiffstats
path: root/remove-duplicated-check.patch
blob: 427a8b90fdc40378a48dedf41c724b9bc294f8c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/ftdiuart.c b/lib/ftdiuart.c
index 7d1054c..0620dd1 100644
--- a/lib/ftdiuart.c
+++ b/lib/ftdiuart.c
@@ -359,7 +359,7 @@ static int fuart_wr_rd_locked(struct fuart_context *fuartc) {
       rd_buf += bytes;
       bytes_remaining -= bytes;
     }
-    if ((bytes == -1) && ((errno == EAGAIN) || (errno == EWOULDBLOCK)) &&
+    if ((bytes == -1) && (errno == EAGAIN) &&
         (retries < 10)) {
       retries++;
       goto retry_write;