laforge has uploaded this change for review.

View Change

cosmetic: curly braces around multi-line blocks

This reflects our general coding style.

Change-Id: Ibf8ebe4c9fdde2bd66ce6239c8eca833e71fc815
---
M src/intf_line.c
1 file changed, 4 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/84/27584/1
diff --git a/src/intf_line.c b/src/intf_line.c
index c9011a8..9146368 100644
--- a/src/intf_line.c
+++ b/src/intf_line.c
@@ -103,9 +103,10 @@
if (!serial_str)
return NULL;

- llist_for_each_entry(intf, &e1d->interfaces, list)
+ llist_for_each_entry(intf, &e1d->interfaces, list) {
if (intf->usb.serial_str && !strcmp(intf->usb.serial_str, serial_str))
return intf;
+ }

return NULL;
}
@@ -115,9 +116,10 @@
{
struct e1_line *line;

- llist_for_each_entry(line, &intf->lines, list)
+ llist_for_each_entry(line, &intf->lines, list) {
if (line->id == id)
return line;
+ }

return NULL;
}

To view, visit change 27584. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ibf8ebe4c9fdde2bd66ce6239c8eca833e71fc815
Gerrit-Change-Number: 27584
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-MessageType: newchange