Linux Media Controller development
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
	linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] [media] qt1010: signedness bug in qt1010_init_meas1()
Date: Fri, 10 Aug 2012 13:26:49 +0300	[thread overview]
Message-ID: <5024E1E9.6090605@iki.fi> (raw)
In-Reply-To: <20120810092502.GD26875@elgon.mountain>

On 08/10/2012 12:25 PM, Dan Carpenter wrote:
> qt1010_init_meas2() returns zero on success and negative error codes on
> failure so the return type should be int instead of u8.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Acked-by: Antti Palosaari <crope@iki.fi>


>
> diff --git a/drivers/media/common/tuners/qt1010.c b/drivers/media/common/tuners/qt1010.c
> index 2d79b1f..bdc39e1 100644
> --- a/drivers/media/common/tuners/qt1010.c
> +++ b/drivers/media/common/tuners/qt1010.c
> @@ -288,7 +288,7 @@ static int qt1010_init_meas1(struct qt1010_priv *priv,
>   	return qt1010_writereg(priv, 0x1e, 0x00);
>   }
>
> -static u8 qt1010_init_meas2(struct qt1010_priv *priv,
> +static int qt1010_init_meas2(struct qt1010_priv *priv,
>   			    u8 reg_init_val, u8 *retval)
>   {
>   	u8 i, val;
>


-- 
http://palosaari.fi/

      reply	other threads:[~2012-08-10 10:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10  9:25 [patch] [media] qt1010: signedness bug in qt1010_init_meas1() Dan Carpenter
2012-08-10 10:26 ` Antti Palosaari [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=5024E1E9.6090605@iki.fi \
    --to=crope@iki.fi \
    --cc=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.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