mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
4083502e03
commit
486d759fa9
1 changed files with 2 additions and 4 deletions
|
|
@ -170,10 +170,8 @@ static void endpoint_free(struct hsphfpd_endpoint *endpoint)
|
||||||
{
|
{
|
||||||
spa_list_remove(&endpoint->link);
|
spa_list_remove(&endpoint->link);
|
||||||
free(endpoint->path);
|
free(endpoint->path);
|
||||||
if (endpoint->local_address)
|
free(endpoint->local_address);
|
||||||
free(endpoint->local_address);
|
free(endpoint->remote_address);
|
||||||
if (endpoint->remote_address)
|
|
||||||
free(endpoint->remote_address);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool hsphfpd_cmp_transport_path(struct spa_bt_transport *t, const void *data)
|
static bool hsphfpd_cmp_transport_path(struct spa_bt_transport *t, const void *data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue