diff options
author | Tülin İzer <tulinizer@gmail.com> | 2013-05-17 03:32:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-17 13:09:25 -0400 |
commit | 085528e5e4e5319f6dc986b0de8c06279d6830c0 (patch) | |
tree | 46631df40334f9fe5d0d8ed62cc75009a96c1f52 | |
parent | 4baf0df7010e8d975edcd778604fc1b1fce30f37 (diff) |
usb: message: Fixed error: 'no space before bracket'
This patch fixes error: 'no space before bracket' in Usb/message.c
Signed-off-by: Tülin İzer <tulinizer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/core/message.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 444d30e3a78b..1f66dd83aa9b 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c | |||
@@ -252,7 +252,7 @@ static void sg_clean(struct usb_sg_request *io) | |||
252 | { | 252 | { |
253 | if (io->urbs) { | 253 | if (io->urbs) { |
254 | while (io->entries--) | 254 | while (io->entries--) |
255 | usb_free_urb(io->urbs [io->entries]); | 255 | usb_free_urb(io->urbs[io->entries]); |
256 | kfree(io->urbs); | 256 | kfree(io->urbs); |
257 | io->urbs = NULL; | 257 | io->urbs = NULL; |
258 | } | 258 | } |
@@ -300,10 +300,10 @@ static void sg_complete(struct urb *urb) | |||
300 | */ | 300 | */ |
301 | spin_unlock(&io->lock); | 301 | spin_unlock(&io->lock); |
302 | for (i = 0, found = 0; i < io->entries; i++) { | 302 | for (i = 0, found = 0; i < io->entries; i++) { |
303 | if (!io->urbs [i] || !io->urbs [i]->dev) | 303 | if (!io->urbs[i] || !io->urbs[i]->dev) |
304 | continue; | 304 | continue; |
305 | if (found) { | 305 | if (found) { |
306 | retval = usb_unlink_urb(io->urbs [i]); | 306 | retval = usb_unlink_urb(io->urbs[i]); |
307 | if (retval != -EINPROGRESS && | 307 | if (retval != -EINPROGRESS && |
308 | retval != -ENODEV && | 308 | retval != -ENODEV && |
309 | retval != -EBUSY && | 309 | retval != -EBUSY && |
@@ -311,7 +311,7 @@ static void sg_complete(struct urb *urb) | |||
311 | dev_err(&io->dev->dev, | 311 | dev_err(&io->dev->dev, |
312 | "%s, unlink --> %d\n", | 312 | "%s, unlink --> %d\n", |
313 | __func__, retval); | 313 | __func__, retval); |
314 | } else if (urb == io->urbs [i]) | 314 | } else if (urb == io->urbs[i]) |
315 | found = 1; | 315 | found = 1; |
316 | } | 316 | } |
317 | spin_lock(&io->lock); | 317 | spin_lock(&io->lock); |
@@ -511,7 +511,7 @@ void usb_sg_wait(struct usb_sg_request *io) | |||
511 | int retval; | 511 | int retval; |
512 | 512 | ||
513 | io->urbs[i]->dev = io->dev; | 513 | io->urbs[i]->dev = io->dev; |
514 | retval = usb_submit_urb(io->urbs [i], GFP_ATOMIC); | 514 | retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC); |
515 | 515 | ||
516 | /* after we submit, let completions or cancelations fire; | 516 | /* after we submit, let completions or cancelations fire; |
517 | * we handshake using io->status. | 517 | * we handshake using io->status. |
@@ -586,9 +586,9 @@ void usb_sg_cancel(struct usb_sg_request *io) | |||
586 | for (i = 0; i < io->entries; i++) { | 586 | for (i = 0; i < io->entries; i++) { |
587 | int retval; | 587 | int retval; |
588 | 588 | ||
589 | if (!io->urbs [i]->dev) | 589 | if (!io->urbs[i]->dev) |
590 | continue; | 590 | continue; |
591 | retval = usb_unlink_urb(io->urbs [i]); | 591 | retval = usb_unlink_urb(io->urbs[i]); |
592 | if (retval != -EINPROGRESS | 592 | if (retval != -EINPROGRESS |
593 | && retval != -ENODEV | 593 | && retval != -ENODEV |
594 | && retval != -EBUSY | 594 | && retval != -EBUSY |