src/lib: Remove braces for single statements
Fix the following warning detected by checkpatch.pl:
WARNING: braces {} are not necessary for single statement blocks
TEST=Build and run on Galileo Gen2
Change-Id: Ie4b41f6fb75142ddd75103a55e0347ed85e7e873
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18697
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins)
diff --git a/src/lib/delay.c b/src/lib/delay.c
index f9703cb..5c0916f 100644
--- a/src/lib/delay.c
+++ b/src/lib/delay.c
@@ -2,14 +2,12 @@
void mdelay(unsigned int msecs)
{
unsigned int i;
- for(i = 0; i < msecs; i++) {
+ for(i = 0; i < msecs; i++)
udelay(1000);
- }
}
void delay(unsigned int secs)
{
unsigned int i;
- for(i = 0; i < secs; i++) {
+ for(i = 0; i < secs; i++)
mdelay(1000);
- }
}