Skip to content
Commit 5246cea8 authored by Michał Barnaś's avatar Michał Barnaś Committed by Carles Cufí
Browse files

usbc: improve error handling in the ucpd_stm32 and vbus_adc



As noted in PR#63165 checking of result should use comparison to
success value instead of checking if result is negative. It will
allow to check if function returned invalid but positive value.

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent 3848e4c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment