[haiku-commits] r42838 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk

  • From: mmlr@xxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 13 Oct 2011 10:43:57 +0200 (CEST)

Author: mmlr
Date: 2011-10-13 10:43:56 +0200 (Thu, 13 Oct 2011)
New Revision: 42838
Changeset: https://dev.haiku-os.org/changeset/42838

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
Log:
Tiny cleanup.


Modified: haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp       
2011-10-13 08:20:10 UTC (rev 42837)
+++ haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp       
2011-10-13 08:43:56 UTC (rev 42838)
@@ -704,7 +704,7 @@
                                        continue;
 
                                if (!hasIn && (endpoint->descr->endpoint_address
-                                       & USB_ENDPOINT_ADDR_DIR_IN)) {
+                                       & USB_ENDPOINT_ADDR_DIR_IN) != 0) {
                                        device->bulk_in = endpoint->handle;
                                        hasIn = true;
                                } else if (!hasOut && 
(endpoint->descr->endpoint_address


Other related posts:

  • » [haiku-commits] r42838 - haiku/trunk/src/add-ons/kernel/drivers/disk/usb/usb_disk - mmlr