On 06/20/2011 09:11 AM, Dan Carpenter wrote: > "ret" is supposed to be signed here. The current code will only > return -EIO on error, instead of a more appropriate error code such > as -EAGAIN etc. > > Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> Acked-by: Lars-Peter Clausen <lars@xxxxxxxxxx> Thanks > > diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c > index 6c01bb6..2758d5f 100644 > --- a/sound/soc/codecs/adau1701.c > +++ b/sound/soc/codecs/adau1701.c > @@ -140,9 +140,10 @@ static unsigned int adau1701_register_size(struct snd_soc_codec *codec, > static int adau1701_write(struct snd_soc_codec *codec, unsigned int reg, > unsigned int value) > { > - unsigned int i, ret; > + unsigned int i; > unsigned int size; > uint8_t buf[4]; > + int ret; > > size = adau1701_register_size(codec, reg); > if (size == 0) -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html