[klibc] [PATCH 2/5] readklink: remove unneeded braces

maximilian attems max at stro.at
Thu Jul 7 06:24:00 PDT 2011


fixes:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: maximilian attems <max at stro.at>
---
 usr/utils/readlink.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/usr/utils/readlink.c b/usr/utils/readlink.c
index 6a5412c..5ea4e41 100644
--- a/usr/utils/readlink.c
+++ b/usr/utils/readlink.c
@@ -28,9 +28,8 @@ int main(int argc, char *argv[])
 		exit(1);
 	}
 
-	if (readlink(name, link_name, max_siz) == -1) {
+	if (readlink(name, link_name, max_siz) == -1)
 		exit(1);
-	}
 	printf("%s\n", link_name);
 
 	exit(0);
-- 
1.7.5.4



More information about the klibc mailing list