spa: bluez: backend-hsphfpd: remove unnecessary NULL checks

`free()` already does a NULL check; and there is no reason
to have those NULL checks inline.
This commit is contained in:
Barnabás Pőcze 2023-07-30 21:41:41 +02:00
parent 4083502e03
commit 486d759fa9

View file

@ -170,10 +170,8 @@ static void endpoint_free(struct hsphfpd_endpoint *endpoint)
{
spa_list_remove(&endpoint->link);
free(endpoint->path);
if (endpoint->local_address)
free(endpoint->local_address);
if (endpoint->remote_address)
free(endpoint->remote_address);
free(endpoint->local_address);
free(endpoint->remote_address);
}
static bool hsphfpd_cmp_transport_path(struct spa_bt_transport *t, const void *data)