summarylogtreecommitdiffstats
path: root/remove-duplicated-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'remove-duplicated-check.patch')
-rw-r--r--remove-duplicated-check.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/remove-duplicated-check.patch b/remove-duplicated-check.patch
new file mode 100644
index 000000000000..427a8b90fdc4
--- /dev/null
+++ b/remove-duplicated-check.patch
@@ -0,0 +1,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;