aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2023-08-03 14:15:45 +0200
committerMauro Carvalho Chehab <[email protected]>2023-08-14 20:27:58 +0200
commitea90034e8fc021568893101f490351529c9ea117 (patch)
tree34a82e9eb83c3963c1e22071d1107050ac320d68 /scripts/generate_rust_analyzer.py
parentb8e277b1dbe66262615c57f2eb2ecdd5d1bd9054 (diff)
media: i2c: ds90ub913: Fix use of uninitialized variables
smatch reports some uninitialized variables: drivers/media/i2c/ds90ub913.c:481 ub913_log_status() error: uninitialized symbol 'v1'. drivers/media/i2c/ds90ub913.c:481 ub913_log_status() error: uninitialized symbol 'v2'. These are used only for printing debug information, and the use of an uninitialized variable only happens if an i2c transaction has failed, which will print an error. Thus, fix the errors just by initializing the variables to 0. Closes: https://lore.kernel.org/all/[email protected]/ Fixes: c158d0d4ff15 ("media: i2c: add DS90UB913 driver") Reported-by: Hans Verkuil <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions