diff options
| author | Wenyuan Li <2063309626@qq.com> | 2026-03-24 16:36:05 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-24 15:03:58 +0000 |
| commit | 071efde6b7568fc3ce3b76d9e8c01e7b172539ad (patch) | |
| tree | f7897fffdc5cbc1ad614a7d6810fa7028e04c9b4 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c369299895a591d96745d6492d4888259b004a9e (diff) | |
ASoC: uda1380: fix missing return value checks for I2C operations
The driver currently ignores the return values of several I2C operations
during register writes, which could lead to silent failures and
inconsistent device state.
Fix this by:
- Moving variable declarations to the beginning of the function (C90).
- Checking the return value of every i2c_master_send() and recv() call.
- Returning the actual error code if it's negative, or -EIO if the
transfer was incomplete.
Signed-off-by: Wenyuan Li <2063309626@qq.com>
Link: https://patch.msgid.link/tencent_579D057AC557914CF739A2D9EAD045CE7306@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
