From 82142f33ca3209442426e56da24d9722adf4c8bb Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 07 2016 16:06:52 +0000 Subject: driver: slbt_init_link_params(): optimize the function return code path. --- 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 */