Skip to content
Commit cb350e93 authored by Himanshu Jha's avatar Himanshu Jha Committed by Maureen Helm
Browse files

sensors: lis2dh: Handle return value of `lis2dh_reg_read_byte` function



Provide necessary error handling for `lis2dh_reg_read_byte` function
which might fail.

Also, use a common `status` variable to be used for storing the
error code.

Fixes #10590
Coverity-CID: 188733

Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
parent 646f06ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment