mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 05:34:23 +08:00
HDP: Fix checking always constant error code
sdp_set_access_protos() always returns 0, there is no sense to check for error code. Fixes compile warnings.
This commit is contained in:
parent
faf90d0d52
commit
0a295fa8ea
@ -425,11 +425,8 @@ static gboolean register_service_protocols(struct hdp_adapter *adapter,
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (sdp_set_access_protos(sdp_record, access_proto_list) < 0) {
|
||||
ret = FALSE;
|
||||
goto end;
|
||||
}
|
||||
ret = TRUE;
|
||||
sdp_set_access_protos(sdp_record, access_proto_list);
|
||||
|
||||
end:
|
||||
if (l2cap_list != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user