diff options
author | David Robillard <d@drobilla.net> | 2024-09-29 19:32:50 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-12 14:07:10 -0400 |
commit | f61080908b980c73e2daf067f863f027ed97c86b (patch) | |
tree | 67a9af1739c9d836398a0446d6344fa47a14460b /src/jack.c | |
parent | 476c2df4ada0b59cbb5e8a1b94a4a88fc6eded1e (diff) | |
download | jalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.gz jalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.bz2 jalv-f61080908b980c73e2daf067f863f027ed97c86b.zip |
Remove useless conditions
Diffstat (limited to 'src/jack.c')
-rw-r--r-- | src/jack.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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); |