From patchwork Thu Feb 25 22:57:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 2836 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Thu, 25 Feb 2010 22:59:17 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Thu, 25 Feb 2010 19:59:51 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Nkmfs-0004Ha-R2; Thu, 25 Feb 2010 22:59:17 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934375Ab0BYW7O (ORCPT + 1 other); Thu, 25 Feb 2010 17:59:14 -0500 Received: from rcsinet12.oracle.com ([148.87.113.124]:30737 "EHLO rcsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934359Ab0BYW7M (ORCPT ); Thu, 25 Feb 2010 17:59:12 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1PMwsm5027938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Feb 2010 22:58:55 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1PJugYI027645; Thu, 25 Feb 2010 22:58:53 GMT Received: from abhmt006.oracle.com by acsmt355.oracle.com with ESMTP id 48683961267138667; Thu, 25 Feb 2010 14:57:47 -0800 Received: from chimera.site (/71.245.98.113) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 25 Feb 2010 14:57:47 -0800 Message-ID: <4B87006A.4030303@oracle.com> Date: Thu, 25 Feb 2010 14:57:46 -0800 From: Randy Dunlap Organization: Oracle Linux Engineering User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0 MIME-Version: 1.0 To: Linux Media Mailing List CC: Mauro Carvalho Chehab , Manu Abraham Subject: [PATCH] media: fix precedence in dvb/frontends/tda665x X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4B8700AD.01A0:SCFMA4539814,ss=1,fgs=0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Randy Dunlap Fix precedence so that data is used correctly. Fixes sparse warning: drivers/media/dvb/frontends/tda665x.c:136:55: warning: right shift by bigger than source value Signed-off-by: Randy Dunlap Cc: Manu Abraham Reviewed-by: Manu Abraham Acked-by: Manu Abraham --- drivers/media/dvb/frontends/tda665x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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 --- lnx-2633-spr.orig/drivers/media/dvb/frontends/tda665x.c +++ lnx-2633-spr/drivers/media/dvb/frontends/tda665x.c @@ -133,7 +133,7 @@ static int tda665x_set_state(struct dvb_ frequency += config->ref_divider >> 1; frequency /= config->ref_divider; - buf[0] = (u8) (frequency & 0x7f00) >> 8; + buf[0] = (u8) ((frequency & 0x7f00) >> 8); buf[1] = (u8) (frequency & 0x00ff) >> 0; buf[2] = 0x80 | 0x40 | 0x02; buf[3] = 0x00;