summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2026-02-23 14:00:14 -0800
committerGuenter Roeck <linux@roeck-us.net>2026-02-24 07:31:35 -0800
commit07ed4f05bbfd2bc014974dcc4297fd3aa1cb88c0 (patch)
tree2802b760d57a62db868f59af7568b1db21949429 /include/linux/i2c/git@git.tavy.me:linux.git
parente710b2283725f0db9e5b99c2483df3f4a7feadbd (diff)
hwmon: (it87) Check the it87_lock() return value
Return early in it87_resume() if it87_lock() fails instead of ignoring the return value of that function. This patch suppresses a Clang thread-safety warning. Cc: Frank Crawford <frank@crawford.emu.id.au> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Jean Delvare <jdelvare@suse.com> Cc: linux-hwmon@vger.kernel.org Fixes: 376e1a937b30 ("hwmon: (it87) Add calls to smbus_enable/smbus_disable as required") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20260223220102.2158611-15-bart.vanassche@linux.dev [groeck: Declare 'ret' at the beginning of it87_resume()] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions