[hackers] [scc] [driver] use early return logic in linkobjs || Quentin Rameau
commit bd026f28239671fba0e68d5169cc974f14505f6f
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jun 7 15:24:43 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jun 7 15:26:26 2016 +0200
[driver] use early return logic in linkobjs
Thanks to k0ga for the suggestion.
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index ed2f511..5522b54 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -282,12 +282,11 @@ linkobjs(void)
spawn(LD);
validatetools();
- if (!kflag) {
- for (i = 0; i < nobjs; ++i)
- unlink(tmpobjs[i]);
- }
+ if (kflag)
+ return;
- return;
+ for (i = 0; i < nobjs; ++i)
+ unlink(tmpobjs[i]);
}
static void
Received on Tue Jun 07 2016 - 15:29:26 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 07 2016 - 15:36:18 CEST