10 Jan
2011
10 Jan
'11
6:36 p.m.
On Mon, Jan 10, 2011 at 12:33:30PM -0600, Timur Tabi wrote:
static unsigned int snd_soc_16_16_read(struct snd_soc_codec *codec, unsigned int reg) { ... ret = snd_soc_cache_read(codec, reg, &val); if (ret < 0) return -1;
What's wrong with:
if (ret < 0) return ret;
Note that the return value of the read functions is an unsigned int rather than an int.