From patchwork Wed Feb 11 11:08:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 5812101 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 034F79F336 for ; Wed, 11 Feb 2015 11:11:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 408922024F for ; Wed, 11 Feb 2015 11:11:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE81A20225 for ; Wed, 11 Feb 2015 11:11:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200AbbBKLK4 (ORCPT ); Wed, 11 Feb 2015 06:10:56 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:38744 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbbBKLKz (ORCPT ); Wed, 11 Feb 2015 06:10:55 -0500 Received: by mail-we0-f178.google.com with SMTP id w62so2635032wes.9; Wed, 11 Feb 2015 03:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:date:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=+IIq4mqReOKPtTSNM7GMFi2n8ng67dPwMW5PjBSaHrI=; b=IzCyUPPx2uSGACJEO56pAZxXrerN/UNwATHpVCmXjhPWRqTGPTN/xJnKA3qxtLlha7 py+5atM/cRgqih5pkJzES+3r6V7ESpPbaXJ0ppZ/zn/GEQKPtO6Wb/MjK+mf8eZKfXaZ rQ1h+EZnk8wl72+r4MwqLeo2WPVFccjStykaowNjMLYrD2QjBDvZpsL5Nj5t6JOMKv5g +N6109041LMqM+A0+9Aaep9UBF/3RPd0dR4l8sWU9heTWhprf/5TBF09n3JZFe952oTK gywTyB6i5QP/a8mujyrKdThzhO5ohQn/IPgTt4TsdDQ+H84k8vA6JPo/kHA93bXjHZCo HZRg== X-Received: by 10.181.27.199 with SMTP id ji7mr4520961wid.76.1423653054405; Wed, 11 Feb 2015 03:10:54 -0800 (PST) Received: from localhost ([212.250.200.210]) by mx.google.com with ESMTPSA id e4sm757233wjw.48.2015.02.11.03.10.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 03:10:52 -0800 (PST) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Wed, 11 Feb 2015 11:08:51 +0000 To: linux-media@vger.kernel.org Cc: mchehab@osg.samsung.com, crop@iki.fi, linux-kernel@vger.kernel.org Subject: [PATCH v2] rtl2832: remove compiler warning Message-ID: <20150211110851.GA30505@biggie> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cleaning up the following compiler warning: rtl2832.c:703:12: warning: 'tmp' may be used uninitialized in this function Even though it could never happen since if rtl2832_rd_demod_reg () doesn't set tmp, this line would never run because we go to err. It is still nice to avoid compiler warnings. Signed-off-by: Luis de Bethencourt Reviewed-by: Antti Palosaari --- drivers/media/dvb-frontends/rtl2832.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index 5d2d8f4..20fa245 100644 --- a/drivers/media/dvb-frontends/rtl2832.c +++ b/drivers/media/dvb-frontends/rtl2832.c @@ -685,7 +685,7 @@ static int rtl2832_read_status(struct dvb_frontend *fe, fe_status_t *status) struct rtl2832_dev *dev = fe->demodulator_priv; struct i2c_client *client = dev->client; int ret; - u32 tmp; + u32 uninitialized_var(tmp); dev_dbg(&client->dev, "\n");