aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2023-07-19 17:31:37 +0300
committerHans Verkuil <[email protected]>2023-07-25 09:24:30 +0200
commit906a6c1c4561bfe5d819c9beeb82b38bbc256c2a (patch)
tree60a9b442719b537d6b93bf947bed3d58c49b9b83 /tools/perf/scripts/python/event_analyzing_sample.py
parentb4f470aef4492315190bca1dadc693f2a52b0fad (diff)
media: i2c: ds90ub913: Fix a warning about use of uninitialized variable
Fix the following warning: drivers/media/i2c/ds90ub913.c:488:9: warning: 'v' may be used uninitialized [-Wmaybe-uninitialized] 488 | ub913_write(priv, UB913_REG_GENERAL_CFG, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 489 | v | UB913_REG_GENERAL_CFG_CRC_ERR_RESET); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/i2c/ds90ub913.c:477:12: note: 'v' was declared here 477 | u8 v, v1, v2; | ^ Fix the warning by initializing the variable to 0. Proper error handling here would be somewhat pointless, as we are just printing register values, and the user will see an error about the failed i2c transaction. Fixes: c158d0d4ff15 ("media: i2c: add DS90UB913 driver") Reported-by: Hans Verkuil <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Tomi Valkeinen <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions