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 | |
parent | 476c2df4ada0b59cbb5e8a1b94a4a88fc6eded1e (diff) | |
download | jalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.gz jalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.bz2 jalv-f61080908b980c73e2daf067f863f027ed97c86b.zip |
Remove useless conditions
Diffstat (limited to 'src')
-rw-r--r-- | src/jack.c | 12 | ||||
-rw-r--r-- | src/jalv.c | 8 |
2 files changed, 7 insertions, 13 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); @@ -1271,11 +1271,9 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv) } #endif - if (jalv->ui) { - jalv_log(JALV_LOG_INFO, - "UI: %s\n", - lilv_node_as_uri(lilv_ui_get_uri(jalv->ui))); - } + jalv_log(JALV_LOG_INFO, + "UI: %s\n", + lilv_node_as_uri(lilv_ui_get_uri(jalv->ui))); } } |