summaryrefslogtreecommitdiff
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-07 12:06:52 -0400
committermidipix <writeonce@midipix.org>2016-04-07 12:06:52 -0400
commit82142f33ca3209442426e56da24d9722adf4c8bb (patch)
treeea5cdabf1627c636719b0a7e5fdc3141d8372065 /src/driver/slbt_driver_ctx.c
parent14691615ea47dd30f03db73505f3f493c202e512 (diff)
downloadslibtool-82142f33ca3209442426e56da24d9722adf4c8bb.tar.bz2
slibtool-82142f33ca3209442426e56da24d9722adf4c8bb.tar.xz
driver: slbt_init_link_params(): optimize the function return code path.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index c6a11f9..a7d02a3 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -523,10 +523,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
program,prefix);
return -1;
}
- }
-
- /* executable? */
- if (!libname)
+ } else
return 0;
/* libname alloc */