Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1293923 > unrolled thread

[PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line

Started byBenjamin Young <youngcdev@gmail.com>
First post2015-12-17 15:30 +0100
Last post2015-12-17 15:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line Benjamin Young <youngcdev@gmail.com> - 2015-12-17 15:30 +0100

#1293923 — [PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line

FromBenjamin Young <youngcdev@gmail.com>
Date2015-12-17 15:30 +0100
Subject[PATCH] drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line
Message-ID<qGHJ8-Ah-3@gated-at.bofh.it>
Made code more standard by fixing issue with _for_ loops not putting
braces on the next line.

Signed-off-by: Benjamin Young <youngcdev@gmail.com>
---
 drivers/thunderbolt/tb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c
index d2c3fe3..7bce491 100644
--- a/drivers/thunderbolt/tb.c
+++ b/drivers/thunderbolt/tb.c
@@ -64,8 +64,7 @@ static void tb_free_invalid_tunnels(struct tb *tb)
 {
 	struct tb_pci_tunnel *tunnel;
 	struct tb_pci_tunnel *n;
-	list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list)
-	{
+	list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list) {
 		if (tb_pci_is_invalid(tunnel)) {
 			tb_pci_deactivate(tunnel);
 			tb_pci_free(tunnel);
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web