Commit 085528e5 authored by Tülin İzer's avatar Tülin İzer Committed by Greg Kroah-Hartman

usb: message: Fixed error: 'no space before bracket'

This patch fixes error: 'no space before bracket' in Usb/message.c
Signed-off-by: default avatarTülin İzer <tulinizer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4baf0df7
...@@ -252,7 +252,7 @@ static void sg_clean(struct usb_sg_request *io) ...@@ -252,7 +252,7 @@ static void sg_clean(struct usb_sg_request *io)
{ {
if (io->urbs) { if (io->urbs) {
while (io->entries--) while (io->entries--)
usb_free_urb(io->urbs [io->entries]); usb_free_urb(io->urbs[io->entries]);
kfree(io->urbs); kfree(io->urbs);
io->urbs = NULL; io->urbs = NULL;
} }
...@@ -300,10 +300,10 @@ static void sg_complete(struct urb *urb) ...@@ -300,10 +300,10 @@ static void sg_complete(struct urb *urb)
*/ */
spin_unlock(&io->lock); spin_unlock(&io->lock);
for (i = 0, found = 0; i < io->entries; i++) { for (i = 0, found = 0; i < io->entries; i++) {
if (!io->urbs [i] || !io->urbs [i]->dev) if (!io->urbs[i] || !io->urbs[i]->dev)
continue; continue;
if (found) { if (found) {
retval = usb_unlink_urb(io->urbs [i]); retval = usb_unlink_urb(io->urbs[i]);
if (retval != -EINPROGRESS && if (retval != -EINPROGRESS &&
retval != -ENODEV && retval != -ENODEV &&
retval != -EBUSY && retval != -EBUSY &&
...@@ -311,7 +311,7 @@ static void sg_complete(struct urb *urb) ...@@ -311,7 +311,7 @@ static void sg_complete(struct urb *urb)
dev_err(&io->dev->dev, dev_err(&io->dev->dev,
"%s, unlink --> %d\n", "%s, unlink --> %d\n",
__func__, retval); __func__, retval);
} else if (urb == io->urbs [i]) } else if (urb == io->urbs[i])
found = 1; found = 1;
} }
spin_lock(&io->lock); spin_lock(&io->lock);
...@@ -511,7 +511,7 @@ void usb_sg_wait(struct usb_sg_request *io) ...@@ -511,7 +511,7 @@ void usb_sg_wait(struct usb_sg_request *io)
int retval; int retval;
io->urbs[i]->dev = io->dev; io->urbs[i]->dev = io->dev;
retval = usb_submit_urb(io->urbs [i], GFP_ATOMIC); retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC);
/* after we submit, let completions or cancelations fire; /* after we submit, let completions or cancelations fire;
* we handshake using io->status. * we handshake using io->status.
...@@ -586,9 +586,9 @@ void usb_sg_cancel(struct usb_sg_request *io) ...@@ -586,9 +586,9 @@ void usb_sg_cancel(struct usb_sg_request *io)
for (i = 0; i < io->entries; i++) { for (i = 0; i < io->entries; i++) {
int retval; int retval;
if (!io->urbs [i]->dev) if (!io->urbs[i]->dev)
continue; continue;
retval = usb_unlink_urb(io->urbs [i]); retval = usb_unlink_urb(io->urbs[i]);
if (retval != -EINPROGRESS if (retval != -EINPROGRESS
&& retval != -ENODEV && retval != -ENODEV
&& retval != -EBUSY && retval != -EBUSY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment