“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
assigned error return to variable ret is not being used in function libtypec_dbgfs_get_alternate_modes #23
In function libtypec_dbgfs_get_alternate_modes() the failed call to get_ucsi_response are assigning -1 to ret to indicate an error has occurred but this variable is not being read so the failure is effectively being silently ignored. Is that expected to ignore these failure cases?
In function libtypec_dbgfs_get_alternate_modes() the failed call to get_ucsi_response are assigning -1 to ret to indicate an error has occurred but this variable is not being read so the failure is effectively being silently ignored. Is that expected to ignore these failure cases?