aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot/protocol.c
diff options
context:
space:
mode:
authorAnatol Pomazau <anatol@google.com>2012-02-28 07:21:08 -0800
committerAnatol Pomazau <anatol@google.com>2012-02-28 07:21:08 -0800
commit5ae3f93f3bafbeb1fc9a3324475c58c725749c5e (patch)
tree27d6d32eed4eddb3c37167bc6ab1f156389377ef /fastboot/protocol.c
parent9427df10e9858ca0c86441d918c262baa9902f2c (diff)
downloadsystem_core-5ae3f93f3bafbeb1fc9a3324475c58c725749c5e.tar.gz
system_core-5ae3f93f3bafbeb1fc9a3324475c58c725749c5e.tar.bz2
system_core-5ae3f93f3bafbeb1fc9a3324475c58c725749c5e.zip
Remove trailing whitespaces
Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
Diffstat (limited to 'fastboot/protocol.c')
-rw-r--r--fastboot/protocol.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fastboot/protocol.c b/fastboot/protocol.c
index 3948363d..e8711139 100644
--- a/fastboot/protocol.c
+++ b/fastboot/protocol.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
@@ -40,7 +40,7 @@ char *fb_get_error(void)
return ERROR;
}
-static int check_response(usb_handle *usb, unsigned size,
+static int check_response(usb_handle *usb, unsigned size,
unsigned data_okay, char *response)
{
unsigned char status[65];
@@ -106,7 +106,7 @@ static int _command_send(usb_handle *usb, const char *cmd,
{
int cmdsize = strlen(cmd);
int r;
-
+
if(response) {
response[0] = 0;
}
@@ -145,7 +145,7 @@ static int _command_send(usb_handle *usb, const char *cmd,
return -1;
}
}
-
+
r = check_response(usb, 0, 0, 0);
if(r < 0) {
return -1;
@@ -168,10 +168,10 @@ int fb_download_data(usb_handle *usb, const void *data, unsigned size)
{
char cmd[64];
int r;
-
+
sprintf(cmd, "download:%08x", size);
r = _command_send(usb, cmd, data, size, 0);
-
+
if(r < 0) {
return -1;
} else {