Skip to content
Unverified Commit e20bfeb0 authored by Yizhuo's avatar Yizhuo Committed by Mark Brown
Browse files

ASoC: rt5651: Variable "ret" in function rt5651_i2c_probe() could be uninitialized



In function rt5651_i2c_probe(), local variable "ret" could
be uninitialized if function regmap_read() returns -EINVAL.
However, this value is used in if statement. This is
potentially unsafe.

Signed-off-by: default avatarYizhuo <yzhai003@ucr.edu>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5e484ec1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment