Skip to content

Commit e010a2a

Browse files
cakturkgregkh
authored andcommitted
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>
1 parent 45c2fc8 commit e010a2a

1 file changed

Lines changed: 11 additions & 17 deletions

File tree

‎drivers/staging/gdm724x/gdm_usb.c‎

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,45 +264,40 @@ static void release_usb(struct lte_udev *udev)
264264
unsigned long flags;
265265

266266
spin_lock_irqsave(&tx->lock, flags);
267-
list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->sdu_list, list)
268-
{
267+
list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->sdu_list, list) {
269268
list_del(&t_sdu->list);
270269
free_tx_sdu_struct(t_sdu);
271270
}
272271

273-
list_for_each_entry_safe(t, t_next, &tx->hci_list, list)
274-
{
272+
list_for_each_entry_safe(t, t_next, &tx->hci_list, list) {
275273
list_del(&t->list);
276274
free_tx_struct(t);
277275
}
278276

279-
list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list)
280-
{
277+
list_for_each_entry_safe(t_sdu, t_sdu_next, &tx->free_list, list) {
281278
list_del(&t_sdu->list);
282279
free_tx_sdu_struct(t_sdu);
283280
}
284281
spin_unlock_irqrestore(&tx->lock, flags);
285282

286283
spin_lock_irqsave(&rx->submit_lock, flags);
287-
list_for_each_entry_safe(r, r_next, &rx->rx_submit_list, rx_submit_list)
288-
{
284+
list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
285+
rx_submit_list) {
289286
spin_unlock_irqrestore(&rx->submit_lock, flags);
290287
usb_kill_urb(r->urb);
291288
spin_lock_irqsave(&rx->submit_lock, flags);
292289
}
293290
spin_unlock_irqrestore(&rx->submit_lock, flags);
294291

295292
spin_lock_irqsave(&rx->rx_lock, flags);
296-
list_for_each_entry_safe(r, r_next, &rx->free_list, free_list)
297-
{
293+
list_for_each_entry_safe(r, r_next, &rx->free_list, free_list) {
298294
list_del(&r->free_list);
299295
free_rx_struct(r);
300296
}
301297
spin_unlock_irqrestore(&rx->rx_lock, flags);
302298

303299
spin_lock_irqsave(&rx->to_host_lock, flags);
304-
list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list)
305-
{
300+
list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list) {
306301
if (r->index == (void *)udev) {
307302
list_del(&r->to_host_list);
308303
free_rx_struct(r);
@@ -458,9 +453,8 @@ static void remove_rx_submit_list(struct usb_rx *r, struct rx_cxt *rx)
458453
struct usb_rx *r_remove, *r_remove_next;
459454

460455
spin_lock_irqsave(&rx->submit_lock, flags);
461-
list_for_each_entry_safe(r_remove,
462-
r_remove_next, &rx->rx_submit_list, rx_submit_list)
463-
{
456+
list_for_each_entry_safe(r_remove, r_remove_next,
457+
&rx->rx_submit_list, rx_submit_list) {
464458
if (r == r_remove) {
465459
list_del(&r->rx_submit_list);
466460
break;
@@ -938,8 +932,8 @@ static int gdm_usb_suspend(struct usb_interface *intf, pm_message_t pm_msg)
938932
udev->usb_state = PM_SUSPEND;
939933

940934
spin_lock_irqsave(&rx->submit_lock, flags);
941-
list_for_each_entry_safe(r, r_next, &rx->rx_submit_list, rx_submit_list)
942-
{
935+
list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
936+
rx_submit_list) {
943937
spin_unlock_irqrestore(&rx->submit_lock, flags);
944938
usb_kill_urb(r->urb);
945939
spin_lock_irqsave(&rx->submit_lock, flags);

0 commit comments

Comments
 (0)