public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Fw: [PATCH] V4L: missing parentheses?
@ 2009-02-18 10:50 Mauro Carvalho Chehab
  2009-02-18 22:38 ` Michael Krufky
  0 siblings, 1 reply; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2009-02-18 10:50 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Michael Krufky, Andrew Morton, Roel Kluin

Patch resent to the proper ML, in order to be handled by patchwork.

Michael,
The patch seems ok to my eyes. Please ack if ok for you to apply it.

Forwarded message:

Date: Wed, 18 Feb 2009 10:11:10 +0100
From: Roel Kluin <roel.kluin@gmail.com>
To: Michael Krufky <mkrufky@linuxtv.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,  video4linux-list@redhat.com, Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] V4L: missing parentheses?


Please review.
--------------------------->8-------------8<------------------------------
Add missing parentheses

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/media/common/tuners/tda18271-common.c b/drivers/media/common/tuners/tda18271-common.c
index 6fb5b45..fc76c30 100644
--- a/drivers/media/common/tuners/tda18271-common.c
+++ b/drivers/media/common/tuners/tda18271-common.c
@@ -490,9 +490,9 @@ int tda18271_set_standby_mode(struct dvb_frontend *fe,
 		tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt);
 
 	regs[R_EP3]  &= ~0xe0; /* clear sm, sm_lt, sm_xt */
-	regs[R_EP3]  |= sm    ? (1 << 7) : 0 |
-			sm_lt ? (1 << 6) : 0 |
-			sm_xt ? (1 << 5) : 0;
+	regs[R_EP3]  |= (sm    ? (1 << 7) : 0) |
+			(sm_lt ? (1 << 6) : 0) |
+			(sm_xt ? (1 << 5) : 0);
 
 	return tda18271_write_regs(fe, R_EP3, 1);
 }




Cheers,
Mauro

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Fw: [PATCH] V4L: missing parentheses?
  2009-02-18 10:50 Fw: [PATCH] V4L: missing parentheses? Mauro Carvalho Chehab
@ 2009-02-18 22:38 ` Michael Krufky
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Krufky @ 2009-02-18 22:38 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Linux Media Mailing List, Andrew Morton, Roel Kluin

Yes, Please merge this Mauro.

Thank you :-)

Acked-by: Michael Krufky <mkrufky@linuxtv.org>

Strange, I didn't get the original mail, but I got Mauro's replies...   
Oh well.

Cheers,

Mike

Mauro Carvalho Chehab wrote:
> Patch resent to the proper ML, in order to be handled by patchwork.
>
> Michael,
> The patch seems ok to my eyes. Please ack if ok for you to apply it.
>
> Forwarded message:
>
> Date: Wed, 18 Feb 2009 10:11:10 +0100
> From: Roel Kluin <roel.kluin@gmail.com>
> To: Michael Krufky <mkrufky@linuxtv.org>
> Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,  video4linux-list@redhat.com, Andrew Morton <akpm@linux-foundation.org>
> Subject: [PATCH] V4L: missing parentheses?
>
>
> Please review.
> --------------------------->8-------------8<------------------------------
> Add missing parentheses
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/media/common/tuners/tda18271-common.c b/drivers/media/common/tuners/tda18271-common.c
> index 6fb5b45..fc76c30 100644
> --- a/drivers/media/common/tuners/tda18271-common.c
> +++ b/drivers/media/common/tuners/tda18271-common.c
> @@ -490,9 +490,9 @@ int tda18271_set_standby_mode(struct dvb_frontend *fe,
>  		tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt);
>  
>  	regs[R_EP3]  &= ~0xe0; /* clear sm, sm_lt, sm_xt */
> -	regs[R_EP3]  |= sm    ? (1 << 7) : 0 |
> -			sm_lt ? (1 << 6) : 0 |
> -			sm_xt ? (1 << 5) : 0;
> +	regs[R_EP3]  |= (sm    ? (1 << 7) : 0) |
> +			(sm_lt ? (1 << 6) : 0) |
> +			(sm_xt ? (1 << 5) : 0);
>  
>  	return tda18271_write_regs(fe, R_EP3, 1);
>  }
>
>
>
>
> Cheers,
> Mauro
>   


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-18 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18 10:50 Fw: [PATCH] V4L: missing parentheses? Mauro Carvalho Chehab
2009-02-18 22:38 ` Michael Krufky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox