ASoC: cs42l73: Make inv and format to be unsigned int
Subsystems (3)
PATCH 1/1 ASoC: cs42l73: Make inv and format to be unsigned int
Fix below smatch warning:
sound/soc/codecs/cs42l73.c +1030 cs42l73_set_dai_fmt(53) error: inv is never equal to 1024 (wrong type 0 - 255). sound/soc/codecs/cs42l73.c +1032 cs42l73_set_dai_fmt(55) error: inv is never equal to 768 (wrong type 0 - 255). sound/soc/codecs/cs42l73.c +1036 cs42l73_set_dai_fmt(59) error: inv is never equal to 1024 (wrong type 0 - 255).
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/cs42l73.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/cs42l73.c +1 -1
@@ -979,7 +979,7 @@ static int cs42l73_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)struct snd_soc_codec *codec = codec_dai->codec;struct cs42l73_private *priv =snd_soc_codec_get_drvdata (codec);u8 id = codec_dai->id; -u8 inv, format; +unsigned int inv, format;u8 spc, mmcc; spc =snd_soc_read (codec,CS42L73_SPC (id));
Signature · 1 line
1.7.5.4
Quoted 3 lines · Axel Lin
Reported-by Dan Carpenter <[email protected]>Signed-off-by Axel Lin <[email protected]>
Thanks for the checks
-brian
Mark Brown
AppliedQuoted 1 line · Axel Lin
Fix below smatch warning:
Applied, thanks.