1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-19 07:17:23 +01:00

remove spurious warning

This commit is contained in:
Will Toohey 2021-04-04 18:35:21 +10:00
parent 4c746df6a8
commit 8ed7d6db71

View File

@ -142,11 +142,6 @@ bool p4io_usb_transfer(
}
if(bytes_xferred >= sizeof(struct p4io_cmd_header)) {
if(*resp_payload_len < cmd_buf.header.payload_len) {
log_warning("Response buffer too short");
return false;
}
memcpy(resp_payload, cmd_buf.payload, *resp_payload_len);
*resp_payload_len = cmd_buf.header.payload_len;