Skip to content
Commit 25a59cde authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

drivers: sensor: vl53l0x: Use proper variable type for return code



VL53L0X_PerformSingleRangingMeasurement() returns a signed 8-bit
integer, not an unsigned 8-bit integer, making the "< 0" comparison
worthless.

Coverity-CID: 182593
Coverity-CID: 182597
Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent e5dcd023
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment