Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eb1c2a6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

ASoC: max98925: reading beyond the end of the array



Debug prints are seldom useful and this one has an annoying thing where
it reads one space beyond the end of the array on error.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f6d1a814
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -271,8 +271,6 @@ static inline int max98925_rate_value(struct snd_soc_codec *codec,
			break;
		}
	}
	dev_dbg(codec->dev, "%s: sample rate is %d, returning %d\n",
				__func__, rate_table[i].rate, *value);
	return ret;
}