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:
Andrei Emeltchenko 2014-06-24 15:07:41 +03:00 committed by Johan Hedberg
parent faf90d0d52
commit 0a295fa8ea

View File

@ -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)