Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
reverse risc-v patches
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Oct 16, 2018
1 parent 78282ab commit d653938
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/jtag/drivers/mpsse.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "mpsse.h"
#include "helper/log.h"
#include "helper/time_support.h"
#include <libusb.h>

/* Compatibility define for older libusb-1.0 */
Expand Down Expand Up @@ -893,7 +892,6 @@ int mpsse_flush(struct mpsse_ctx *ctx)
}

/* Polling loop, more or less taken from libftdi */
int64_t start = timeval_ms();
while (!write_result.done || !read_result.done) {
struct timeval timeout_usb;

Expand All @@ -916,11 +914,6 @@ int mpsse_flush(struct mpsse_ctx *ctx)
break;
}
}

if (timeval_ms() - start > 2000) {
LOG_ERROR("Timed out handling USB events in mpsse_flush().");
break;
}
}

error_check:
Expand Down

0 comments on commit d653938

Please sign in to comment.