Skip to contentSkip to conversation

staging: greybus: tools: Fix braces {} style

PATCH In review Simran Singhal 2 participants 2 messages Mar 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: greybus: tools: Fix braces {} style

This patch fixes the check reported by checkpatch.pl for braces {} should be used on all arms of this statement.

---
 drivers/staging/greybus/tools/loopback_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/greybus/tools/loopback_test.c +2 -1
index ba6f905f26fa..d46721502897 100644
@@ -801,8 +801,9 @@ static void prepare_devices(struct loopback_test *t)
 			write_sysfs_val(t->devices[i].sysfs_entry,
 					"outstanding_operations_max",
 					t->async_outstanding_operations);
-		} else
+		} else {
 			write_sysfs_val(t->devices[i].sysfs_entry, "async", 0);
+		}
 	}
 }
 
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Simran Singhal

This patch fixes the check reported by checkpatch.pl for braces {} should be used on all arms of this statement.

Looks fine to me. And I saw no other instances of this in the Greybus code. Thanks for the patch.

Quoted 20 lines
---
 drivers/staging/greybus/tools/loopback_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/greybus/tools/loopback_test.c +2 -1
index ba6f905f26fa..d46721502897 100644
@@ -801,8 +801,9 @@ static void prepare_devices(struct loopback_test *t)
 			write_sysfs_val(t->devices[i].sysfs_entry,
 					"outstanding_operations_max",
 					t->async_outstanding_operations);
-		} else
+		} else {
 			write_sysfs_val(t->devices[i].sysfs_entry, "async", 0);
+		}
 	}
 }