[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190904203209.8669-1-jcfaracco@gmail.com>
Date: Wed, 4 Sep 2019 20:32:09 +0000
From: Julio Faracco <jcfaracco@...il.com>
To: greybus-dev@...ts.linaro.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org
Cc: elder@...nel.org, johan@...nel.org, lkcamp@...ts.libreplanetbr.org
Subject: [PATCH] staging: greybus: Adding missing brackets into if..else block.
Inside a block of if..else conditional, else structure does not contain
brackets. This is not following regular policies of good coding style.
All parts of this conditional blocks should respect brackets inclusion.
Signed-off-by: Julio Faracco <jcfaracco@...il.com>
---
drivers/staging/greybus/tools/loopback_test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/greybus/tools/loopback_test.c b/drivers/staging/greybus/tools/loopback_test.c
index ba6f905f2..d46721502 100644
--- a/drivers/staging/greybus/tools/loopback_test.c
+++ b/drivers/staging/greybus/tools/loopback_test.c
@@ -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);
+ }
}
}
--
2.20.1
Powered by blists - more mailing lists