pulse-server: remove unnecessary check

`spa_streq()` already checks if any of its arguments
are NULL, and NULL is not considered equal to any non-NULL
string, therefore the check can be removed.
This commit is contained in:
Barnabás Pőcze 2022-01-20 15:33:14 +01:00 committed by Wim Taymans
parent caf6156e32
commit 649b33c73f

View file

@ -5132,7 +5132,7 @@ static int do_send_object_message(struct client *client, uint32_t command, uint3
int res = -ENOENT; int res = -ENOENT;
spa_list_for_each(o, &manager->object_list, link) { spa_list_for_each(o, &manager->object_list, link) {
if (o->message_object_path && spa_streq(o->message_object_path, path)) { if (spa_streq(o->message_object_path, path)) {
if (o->message_handler) if (o->message_handler)
res = o->message_handler(manager, o, message, params, &response); res = o->message_handler(manager, o, message, params, &response);
else else