commit | 505cc19941bb14f517804ca99e64854f148075a1 | [log] [tgz] |
---|---|---|
author | Thomas Stranger <thomas.stranger@outlook.com> | Sun Feb 04 20:08:50 2024 +0100 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Thu Feb 08 12:14:36 2024 +0000 |
tree | de07a2a33b318af235adb85f7ef25a616282478d | |
parent | 199487be54246436f0bd75aa9965927db7623f85 [diff] |
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: Thomas Stranger <thomas.stranger@outlook.com>