zephyr/drivers/w1
Thomas Stranger 505cc19941 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>
2024-02-08 12:14:36 +00:00
..
CMakeLists.txt
Kconfig
Kconfig.ds2477_85
Kconfig.ds2482-800
Kconfig.ds2484
Kconfig.ds2485
Kconfig.test
Kconfig.zephyr_gpio
Kconfig.zephyr_serial
w1_common.c
w1_ds2477_85_common.c
w1_ds2477_85_common.h
w1_ds2482-800.c
w1_ds2482-800.h
w1_ds2482-800_channel.c
w1_ds2482_84_common.h
w1_ds2484.c
w1_ds2485.c
w1_handlers.c
w1_net.c
w1_shell.c
w1_test.c
w1_zephyr_gpio.c
w1_zephyr_serial.c