pulse: don't check config_param!=NULL

The conf.h functions deal well with config_param==NULL and will return
the specified default value then.
This commit is contained in:
Max Kellermann
2009-03-26 19:50:02 +01:00
parent 74273d419a
commit cd4964cdee
2 changed files with 5 additions and 10 deletions

View File

@@ -70,10 +70,8 @@ pulse_init(G_GNUC_UNUSED const struct audio_format *audio_format,
pd = pulse_new_data();
pd->name = config_get_block_string(param, "name", "mpd_pulse");
pd->server = param != NULL
? config_dup_block_string(param, "server", NULL) : NULL;
pd->sink = param != NULL
? config_dup_block_string(param, "sink", NULL) : NULL;
pd->server = config_dup_block_string(param, "server", NULL);
pd->sink = config_dup_block_string(param, "sink", NULL);
return pd;
}