From patchwork Wed Feb 18 10:50:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 7730 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n1IAoqB2016963 for ; Wed, 18 Feb 2009 10:50:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751720AbZBRKuv (ORCPT ); Wed, 18 Feb 2009 05:50:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751832AbZBRKuv (ORCPT ); Wed, 18 Feb 2009 05:50:51 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:38271 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbZBRKuv (ORCPT ); Wed, 18 Feb 2009 05:50:51 -0500 Received: from 200.220.139.66.nipcable.com ([200.220.139.66] helo=pedra.chehab.org) by bombadil.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux)) id 1LZk0v-0003ga-Ez; Wed, 18 Feb 2009 10:50:49 +0000 Date: Wed, 18 Feb 2009 07:50:24 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Michael Krufky , Andrew Morton , Roel Kluin Subject: Fw: [PATCH] V4L: missing parentheses? Message-ID: <20090218075024.1fa03027@pedra.chehab.org> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 To: Michael Krufky Cc: Mauro Carvalho Chehab , video4linux-list@redhat.com, Andrew Morton Subject: [PATCH] V4L: missing parentheses? Please review. --------------------------->8-------------8<------------------------------ Add missing parentheses Signed-off-by: Roel Kluin Acked-by: Michael Krufky --- Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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); }