From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-media@vger.kernel.org, mchehab@infradead.org, patches@linaro.org
Subject: Re: [PATCH] [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs()
Date: Tue, 25 Sep 2012 15:39:10 +0200 [thread overview]
Message-ID: <5061B3FE.1030103@samsung.com> (raw)
In-Reply-To: <1348571944-7139-1-git-send-email-sachin.kamat@linaro.org>
Hi Sachin,
On 09/25/2012 01:19 PM, Sachin Kamat wrote:
> When precedence rules are applied, the condition always evaluates
> to be false which was not the intention. Adding the missing braces
> for correct evaluation of the expression and subsequent functionality.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> drivers/media/platform/s5p-fimc/fimc-lite.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.c b/drivers/media/platform/s5p-fimc/fimc-lite.c
> index 9289008..20e5e24 100644
> --- a/drivers/media/platform/s5p-fimc/fimc-lite.c
> +++ b/drivers/media/platform/s5p-fimc/fimc-lite.c
> @@ -825,7 +825,7 @@ static int fimc_lite_reqbufs(struct file *file, void *priv,
>
> reqbufs->count = max_t(u32, FLITE_REQ_BUFS_MIN, reqbufs->count);
> ret = vb2_reqbufs(&fimc->vb_queue, reqbufs);
> - if (!ret < 0)
> + if (!(ret < 0))
> fimc->reqbufs_count = reqbufs->count;
Thanks for the catch. It looks like my search/replace oversight..
I think it's better to just make it
if (!ret)
fimc->reqbufs_count = reqbufs->count;
Since this bug is relatively harmless I could queue it for v3.7, with the
above change if you are OK with that. Or would you like to resend this
patch with changed summary ?
>
> return ret;
Regards,
Sylwester
next prev parent reply other threads:[~2012-09-25 13:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 11:19 [PATCH] [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs() Sachin Kamat
2012-09-25 13:39 ` Sylwester Nawrocki [this message]
2012-09-25 15:28 ` Sachin Kamat
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=5061B3FE.1030103@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=patches@linaro.org \
--cc=sachin.kamat@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).