aboutsummaryrefslogtreecommitdiffstats
path: root/src/jack.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-09-29 19:32:50 -0400
committerDavid Robillard <d@drobilla.net>2024-10-12 14:07:10 -0400
commitf61080908b980c73e2daf067f863f027ed97c86b (patch)
tree67a9af1739c9d836398a0446d6344fa47a14460b /src/jack.c
parent476c2df4ada0b59cbb5e8a1b94a4a88fc6eded1e (diff)
downloadjalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.gz
jalv-f61080908b980c73e2daf067f863f027ed97c86b.tar.bz2
jalv-f61080908b980c73e2daf067f863f027ed97c86b.zip
Remove useless conditions
Diffstat (limited to 'src/jack.c')
-rw-r--r--src/jack.c12
1 files changed, 4 insertions, 8 deletions
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);