From f61080908b980c73e2daf067f863f027ed97c86b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Sep 2024 19:32:50 -0400 Subject: Remove useless conditions --- src/jack.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/jack.c') diff --git a/src/jack.c b/src/jack.c index defd8c9..25a8d1f 100644 --- a/src/jack.c +++ b/src/jack.c @@ -295,8 +295,6 @@ jack_latency_cb(jack_latency_callback_mode_t mode, void* data) static jack_client_t* jack_create_client(Jalv* jalv) { - jack_client_t* client = NULL; - // Determine the name of the JACK client char* jack_name = NULL; if (jalv->opts.name) { @@ -315,12 +313,10 @@ jack_create_client(Jalv* jalv) } // Connect to JACK - if (!client) { - client = jack_client_open( - jack_name, - (jalv->opts.name_exact ? JackUseExactName : JackNullOption), - NULL); - } + jack_client_t* const client = jack_client_open( + jack_name, + (jalv->opts.name_exact ? JackUseExactName : JackNullOption), + NULL); free(jack_name); -- cgit v1.2.1