commit bd026f28239671fba0e68d5169cc974f14505f6f
Author:     Quentin Rameau <quinq@fifth.space>
AuthorDate: Tue Jun 7 15:24:43 2016 +0200
Commit:     Quentin Rameau <quinq@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
@@ -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

Reply via email to