From: Archit Taneja <archit@ti.com>
To: Wei Yongjun <weiyj.lk@gmail.com>, <m.chehab@samsung.com>,
<grant.likely@linaro.org>, <rob.herring@calxeda.com>,
<hans.verkuil@cisco.com>, <k.debski@samsung.com>
Cc: <yongjun_wei@trendmicro.com.cn>, <linux-media@vger.kernel.org>
Subject: Re: [PATCH -next] [media] v4l: ti-vpe: fix error return code in vpe_probe()
Date: Tue, 5 Nov 2013 10:53:34 +0530 [thread overview]
Message-ID: <527880D6.4070008@ti.com> (raw)
In-Reply-To: <CAPgLHd_VJKy0Eqsyjb=_CKbCZTEvpq6Gh+ri3YSTHPEqLN=U0w@mail.gmail.com>
On Wednesday 30 October 2013 08:40 AM, 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.
Reviewed-by: Archit Taneja <archit@ti.com>
Thanks,
Archit
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> drivers/media/platform/ti-vpe/vpe.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c
> index 4e58069..0dbfd52 100644
> --- a/drivers/media/platform/ti-vpe/vpe.c
> +++ b/drivers/media/platform/ti-vpe/vpe.c
> @@ -2007,8 +2007,10 @@ static int vpe_probe(struct platform_device *pdev)
> vpe_top_vpdma_reset(dev);
>
> dev->vpdma = vpdma_create(pdev);
> - if (IS_ERR(dev->vpdma))
> + if (IS_ERR(dev->vpdma)) {
> + ret = PTR_ERR(dev->vpdma);
> goto runtime_put;
> + }
>
> vfd = &dev->vfd;
> *vfd = vpe_videodev;
>
>
prev parent reply other threads:[~2013-11-05 5:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 3:10 [PATCH -next] [media] v4l: ti-vpe: fix error return code in vpe_probe() Wei Yongjun
2013-11-05 5:23 ` Archit Taneja [this message]
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=527880D6.4070008@ti.com \
--to=archit@ti.com \
--cc=grant.likely@linaro.org \
--cc=hans.verkuil@cisco.com \
--cc=k.debski@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=rob.herring@calxeda.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox