summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorTrevor Wu <trevor.wu@mediatek.com>2023-03-07 12:09:36 +0800
committerMark Brown <broonie@kernel.org>2023-03-13 14:08:37 +0000
commit1a3f0116b74ba2f9477c28fcf9d66ac7126455fd (patch)
tree0f9eaef8cdacc638d0e828e5e4a3e9cb0d136c38 /lib/debugobjects.c
parentff728899065922534d80170685fb807194d6487b (diff)
ASoC: mediatek: mt9195-mt6359: fix UNINIT problem
Coverity shows using uninitialized value monitor. When regmap_read returns an error, monitor keeps the value left from earlier computation. To prevent from the unexpected result in the case, assign 0 to monitor. Signed-off-by: Trevor Wu <trevor.wu@mediatek.com> Link: https://lore.kernel.org/r/20230307040938.7484-3-trevor.wu@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions