From 649b33c73ffa2a1b5e52814eda58f4b20ed20f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 20 Jan 2022 15:33:14 +0100 Subject: [PATCH] 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. --- src/modules/module-protocol-pulse/pulse-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index b53e539a8..dce96afab 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -5132,7 +5132,7 @@ static int do_send_object_message(struct client *client, uint32_t command, uint3 int res = -ENOENT; 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) res = o->message_handler(manager, o, message, params, &response); else