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:
Himanshu Jha <himanshujha199640@gmail.com>
Loading
Please sign in to comment