From: Jonathan Cameron <jic23@kernel.org>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: lars@metafoo.de, yongjun_wei@trendmicro.com.cn,
linux-iio@vger.kernel.org
Subject: Re: [PATCH -next] iio: dac: ad7303: fix error return code in ad7303_probe()
Date: Sat, 22 Jun 2013 11:38:16 +0100 [thread overview]
Message-ID: <51C57E98.5020409@kernel.org> (raw)
In-Reply-To: <CAPgLHd_7GTkOavGHctmaODV-gQBjRi5aiUF7+BR-FRnP8eCa7w@mail.gmail.com>
On 06/18/2013 02:08 PM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Fix to return a negative error code from the error handling
> case instead of 0, as done elsewhere in this function.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
This one looks pretty obvious so I'll take it without waiting
for any other comments.
Applied to togreg branch of iio.git
Thanks,
> ---
> drivers/iio/dac/ad7303.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iio/dac/ad7303.c b/drivers/iio/dac/ad7303.c
> index 85aeef6..d546f50 100644
> --- a/drivers/iio/dac/ad7303.c
> +++ b/drivers/iio/dac/ad7303.c
> @@ -235,8 +235,10 @@ static int ad7303_probe(struct spi_device *spi)
>
> if (ext_ref) {
> st->vref_reg = regulator_get(&spi->dev, "REF");
> - if (IS_ERR(st->vref_reg))
> + if (IS_ERR(st->vref_reg)) {
> + ret = PTR_ERR(st->vref_reg);
> goto err_disable_vdd_reg;
> + }
>
> ret = regulator_enable(st->vref_reg);
> if (ret)
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2013-06-22 10:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 13:08 [PATCH -next] iio: dac: ad7303: fix error return code in ad7303_probe() Wei Yongjun
2013-06-22 10:38 ` Jonathan Cameron [this message]
2013-06-22 13:30 ` Lars-Peter Clausen
2013-06-22 14:00 ` Jonathan Cameron
2013-06-29 9:47 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C57E98.5020409@kernel.org \
--to=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.