1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:13:09 +02:00

tools/lib/atusb-common.c (atusb_tx): fix compiler warning

Tried to return value in void function.
This commit is contained in:
Werner Almesberger 2012-11-11 09:28:29 -03:00
parent 42f1a78807
commit 155886ddcb

View File

@ -357,7 +357,7 @@ void atusb_tx(void *handle, const void *buf, int size)
if (res < 0) {
fprintf(stderr, "usb_bulk_read: %d\n", res);
dsc->error = 1;
return 0;
return;
}
if (tmp)
fprintf(stderr, "atusb_tx: ACK is non-zero 0x%02x\n", tmp);