aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCihangir Akturk <cakturk@gmail.com>2014-07-26 20:21:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-26 22:26:46 -0400
commite010a2a04c3179c342e370e93ffb7d13eaf90dc4 (patch)
tree36357c7815534549dea5ceddaf291cdf0fe2fdd1
parent45c2fc821d7c0b0b5e69ab6c9417b587f5b1bd50 (diff)
staging: gdm724x: fix misplaced open braces
This patch fixes the following checkpatch.pl issues in gdm_usb.c: ERROR: that open brace { should be on the previous line Signed-off-by: Cihangir Akturk <cakturk@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/gdm724x/gdm_usb.c28
1 files changed, 11 insertions, 17 deletions
diff --git a/drivers/staging/gdm724x/gdm_usb.c b/drivers/staging/gdm724x/gdm_usb.c
index 0c1b2de2b57d..483185bb4ecf 100644
--- a/drivers/staging/gdm724x/gdm_usb.c
+++ b/drivers/staging/gdm724x/gdm_usb.c
@@ -264,28 +264,25 @@ static void release_usb(struct lte_udev *udev)
264 unsigned long flags; 264 unsigned long flags;
265 265
266 spin_lock_irqsave(&tx->lock, flags); 266 spin_lock_irqsave(&tx->lock, flags);
267 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->sdu_list, list) 267 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->sdu_list, list) {
268 {
269 list_del(&t_sdu->list); 268 list_del(&t_sdu->list);
270 free_tx_sdu_struct(t_sdu); 269 free_tx_sdu_struct(t_sdu);
271 } 270 }
272 271
273 list_for_each_entry_safe(t, t_next, &tx->hci_list, list) 272 list_for_each_entry_safe(t, t_next, &tx->hci_list, list) {
274 {
275 list_del(&t->list); 273 list_del(&t->list);
276 free_tx_struct(t); 274 free_tx_struct(t);
277 } 275 }
278 276
279 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list) 277 list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list) {
280 {
281 list_del(&t_sdu->list); 278 list_del(&t_sdu->list);
282 free_tx_sdu_struct(t_sdu); 279 free_tx_sdu_struct(t_sdu);
283 } 280 }
284 spin_unlock_irqrestore(&tx->lock, flags); 281 spin_unlock_irqrestore(&tx->lock, flags);
285 282
286 spin_lock_irqsave(&rx->submit_lock, flags); 283 spin_lock_irqsave(&rx->submit_lock, flags);
287 list_for_each_entry_safe(r, r_next, &rx->rx_submit_list, rx_submit_list) 284 list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
288 { 285 rx_submit_list) {
289 spin_unlock_irqrestore(&rx->submit_lock, flags); 286 spin_unlock_irqrestore(&rx->submit_lock, flags);
290 usb_kill_urb(r->urb); 287 usb_kill_urb(r->urb);
291 spin_lock_irqsave(&rx->submit_lock, flags); 288 spin_lock_irqsave(&rx->submit_lock, flags);
@@ -293,16 +290,14 @@ static void release_usb(struct lte_udev *udev)
293 spin_unlock_irqrestore(&rx->submit_lock, flags); 290 spin_unlock_irqrestore(&rx->submit_lock, flags);
294 291
295 spin_lock_irqsave(&rx->rx_lock, flags); 292 spin_lock_irqsave(&rx->rx_lock, flags);
296 list_for_each_entry_safe(r, r_next, &rx->free_list, free_list) 293 list_for_each_entry_safe(r, r_next, &rx->free_list, free_list) {
297 {
298 list_del(&r->free_list); 294 list_del(&r->free_list);
299 free_rx_struct(r); 295 free_rx_struct(r);
300 } 296 }
301 spin_unlock_irqrestore(&rx->rx_lock, flags); 297 spin_unlock_irqrestore(&rx->rx_lock, flags);
302 298
303 spin_lock_irqsave(&rx->to_host_lock, flags); 299 spin_lock_irqsave(&rx->to_host_lock, flags);
304 list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list) 300 list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list) {
305 {
306 if (r->index == (void *)udev) { 301 if (r->index == (void *)udev) {
307 list_del(&r->to_host_list); 302 list_del(&r->to_host_list);
308 free_rx_struct(r); 303 free_rx_struct(r);
@@ -458,9 +453,8 @@ static void remove_rx_submit_list(struct usb_rx *r, struct rx_cxt *rx)
458 struct usb_rx *r_remove, *r_remove_next; 453 struct usb_rx *r_remove, *r_remove_next;
459 454
460 spin_lock_irqsave(&rx->submit_lock, flags); 455 spin_lock_irqsave(&rx->submit_lock, flags);
461 list_for_each_entry_safe(r_remove, 456 list_for_each_entry_safe(r_remove, r_remove_next,
462 r_remove_next, &rx->rx_submit_list, rx_submit_list) 457 &rx->rx_submit_list, rx_submit_list) {
463 {
464 if (r == r_remove) { 458 if (r == r_remove) {
465 list_del(&r->rx_submit_list); 459 list_del(&r->rx_submit_list);
466 break; 460 break;
@@ -938,8 +932,8 @@ static int gdm_usb_suspend(struct usb_interface *intf, pm_message_t pm_msg)
938 udev->usb_state = PM_SUSPEND; 932 udev->usb_state = PM_SUSPEND;
939 933
940 spin_lock_irqsave(&rx->submit_lock, flags); 934 spin_lock_irqsave(&rx->submit_lock, flags);
941 list_for_each_entry_safe(r, r_next, &rx->rx_submit_list, rx_submit_list) 935 list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
942 { 936 rx_submit_list) {
943 spin_unlock_irqrestore(&rx->submit_lock, flags); 937 spin_unlock_irqrestore(&rx->submit_lock, flags);
944 usb_kill_urb(r->urb); 938 usb_kill_urb(r->urb);
945 spin_lock_irqsave(&rx->submit_lock, flags); 939 spin_lock_irqsave(&rx->submit_lock, flags);