From: Thomas Jarosch Date: Wed, 14 Jul 2010 07:46:12 +0000 (+0200) Subject: Update AUTHORS and fix code indent X-Git-Tag: v1.0rc1~155 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=ef15fab5819f38a4e215e7824e90f215bbbc5d0d Update AUTHORS and fix code indent --- diff --git a/AUTHORS b/AUTHORS index 9aed93e..f8463e4 100644 --- a/AUTHORS +++ b/AUTHORS @@ -39,3 +39,4 @@ see Changelog for full details: Tim Ansell Uwe Bonnes Wilfried Holzke + Yi-Shin Li diff --git a/src/ftdi.c b/src/ftdi.c index af813f3..b42ba14 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -1523,12 +1523,13 @@ int ftdi_transfer_data_done(struct ftdi_transfer_control *tc) ret = tc->offset; /** * tc->transfer could be NULL if "(size <= ftdi->readbuffer_remaining)" - * at ftdi_read_data_submit(). Therefore, has to check it here. + * at ftdi_read_data_submit(). Therefore, we need to check it here. **/ - if (tc->transfer) { - if (tc->transfer->status != LIBUSB_TRANSFER_COMPLETED) - ret = -1; - libusb_free_transfer(tc->transfer); + if (tc->transfer) + { + if (tc->transfer->status != LIBUSB_TRANSFER_COMPLETED) + ret = -1; + libusb_free_transfer(tc->transfer); } free(tc); return ret;