Skip to content
Commit 505cc199 authored by Thomas Stranger's avatar Thomas Stranger Committed by Fabio Baltieri
Browse files

drivers: w1: fix return check in bit_read for w1-gpio



The driver masked the return value of a pin read operation before
checking the error.
Thus not detecting a potential error and leading to logically
dead code, which was detected by coverity in CID 340853.
Anther instance XORs 1 before returning, resulting in an unexpected
return value;

Signed-off-by: default avatarThomas Stranger <thomas.stranger@outlook.com>
parent 199487be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment