“libtypec” is aimed to provide a generic interface abstracting all platform complexity for user space to develop tools for efficient USB-C port management. The library can also enable development of diagnostic and debug tools to debug system issues around USB-C/USB PD topology.
34
stars
4
forks
source link
function libtypec_get_bb_data() is not returning a value #18
The successful path of the following function does not return a value. I suspect it works because the return value from the call to get_bb_data is still in register from the call, but it needs to be explicitly returned.
int libtypec_get_bb_data(int bb_instance,char* bb_data)
{
if (!cur_libtypec_os_backend || !cur_libtypec_os_backend->get_bb_data )
return -EIO;
cur_libtypec_os_backend->get_bb_data(bb_instance,bb_data);
}
The successful path of the following function does not return a value. I suspect it works because the return value from the call to get_bb_data is still in register from the call, but it needs to be explicitly returned.