Skip to contentSkip to conversation

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

PATCH New Benjamin Young 1 participant 1 message Dec 17, 2015 Thunderbolt driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: thunderbolt: Coding Style Fix - Put for loop brace on same line

Made code more standard by fixing issue with _for_ loops not putting braces on the next line.

---
 drivers/thunderbolt/tb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/thunderbolt/tb.c +1 -2
index d2c3fe3..7bce491 100644
@@ -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);
Signature · 1 line
2.5.0