From 852d6fc4b690c8e8d9a0b2d2e5d802b1a69353af Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 2 Sep 2021 16:42:43 +1000 Subject: [PATCH] media-session: remove a superfluous NULL check spa_streq() checks for NULL and (through the same function) so does pw_properties_parse_bool() --- src/examples/media-session/access-portal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/examples/media-session/access-portal.c b/src/examples/media-session/access-portal.c index 94d7e7cd5..1b6bb7bd2 100644 --- a/src/examples/media-session/access-portal.c +++ b/src/examples/media-session/access-portal.c @@ -490,8 +490,7 @@ static void client_info_changed(struct client *client, const struct pw_client_in } is_portal = spa_dict_lookup(props, "pipewire.access.portal.is_portal"); - if (is_portal != NULL && - (spa_streq(is_portal, "yes") || pw_properties_parse_bool(is_portal))) { + if (spa_streq(is_portal, "yes") || pw_properties_parse_bool(is_portal)) { pw_log_info(NAME " %p: client %d is the portal itself", impl, client->id); client->is_portal = true;