ch347jtag: drop unused sync_cb

This commit is contained in:
Gwenhael Goavec-Merou 2024-03-07 06:57:27 +01:00
parent 8ed388ca1c
commit 6dc2e752f4
1 changed files with 1 additions and 6 deletions

View File

@ -49,11 +49,6 @@ enum CH347JtagSig {
SIG_TDI = 0b10000,
};
static void LIBUSB_CALL sync_cb(struct libusb_transfer *transfer) {
int *complete = (int *)transfer->user_data;
*complete = 1;
}
// defer should only be used with rlen == 0
int CH347Jtag::usb_xfer(unsigned wlen, unsigned rlen, unsigned *ract, bool defer)
@ -429,4 +424,4 @@ int CH347Jtag::writeTDI(const uint8_t *tx, uint8_t *rx, uint32_t len, bool end)
}
}
return EXIT_SUCCESS;
}
}