Remove trailing whitespaces
Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
diff --git a/fastboot/usb_osx.c b/fastboot/usb_osx.c
index 6df5d2c..cbce9bd 100644
--- a/fastboot/usb_osx.c
+++ b/fastboot/usb_osx.c
@@ -9,7 +9,7 @@
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
+ * the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -19,7 +19,7 @@
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
@@ -55,7 +55,7 @@
int success;
ifc_match_func callback;
usb_ifc_info info;
-
+
UInt8 bulkIn;
UInt8 bulkOut;
IOUSBInterfaceInterface190 **interface;
@@ -132,7 +132,7 @@
// continue so we can try the next interface
continue;
}
-
+
/*
* Now open the interface. This will cause the pipes
* associated with the endpoints in the interface descriptor
@@ -149,7 +149,7 @@
* use the interface. Maybe something needs to be done about
* this situation.
*/
-
+
kr = (*interface)->USBInterfaceOpen(interface);
if (kr != 0) {
@@ -158,7 +158,7 @@
// continue so we can try the next interface
continue;
}
-
+
// Get the number of endpoints associated with this interface.
kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints);
@@ -242,10 +242,10 @@
ERR("could not clear output pipe; result %x, ignoring....\n", kr);
}
}
-
+
return 0;
}
-
+
next_interface:
(*interface)->USBInterfaceClose(interface);
(*interface)->Release(interface);
@@ -284,7 +284,7 @@
goto error;
}
- /*
+ /*
* We don't need the intermediate interface after the device interface
* is created.
*/
@@ -339,7 +339,7 @@
if (kr == kIOReturnSuccess && req.wLenDone > 0) {
int i, count;
-
+
// skip first word, and copy the rest to the serial string, changing shorts to bytes.
count = (req.wLenDone - 1) / 2;
for (i = 0; i < count; i++)
@@ -364,8 +364,8 @@
if (dev != NULL) {
(*dev)->Release(dev);
}
-
- return -1;
+
+ return -1;
}
@@ -399,7 +399,7 @@
ERR("Could not create iterator.");
return -1;
}
-
+
for (;;) {
if (! IOIteratorIsValid(iterator)) {
/*
@@ -409,7 +409,7 @@
IOIteratorReset(iterator);
continue;
}
-
+
io_service_t device = IOIteratorNext(iterator);
if (device == 0) {