Update AUTHORS and fix code indent
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 14 Jul 2010 07:46:12 +0000 (09:46 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 14 Jul 2010 07:46:12 +0000 (09:46 +0200)
AUTHORS
src/ftdi.c

diff --git a/AUTHORS b/AUTHORS
index 9aed93e..f8463e4 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -39,3 +39,4 @@ see Changelog for full details:
   Tim Ansell <mithro@mithis.com>
   Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
   Wilfried Holzke <libftdi@holzke.net>
+  Yi-Shin Li <ysli@araisrobo.com>
index af813f3..b42ba14 100644 (file)
@@ -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;