From patchwork Mon Sep 24 11:37:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 1497451 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 71A27DF280 for ; Mon, 24 Sep 2012 11:37:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754461Ab2IXLhs (ORCPT ); Mon, 24 Sep 2012 07:37:48 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:35468 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754458Ab2IXLhr (ORCPT ); Mon, 24 Sep 2012 07:37:47 -0400 Received: by wibhr14 with SMTP id hr14so4723588wib.1 for ; Mon, 24 Sep 2012 04:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Fconreb/+PB+Y9DcInO9gJ9F3iBlZALaEglWU2AbB3A=; b=G/27Ar12eEJ2zubaxJ5DkNqJV4LQ9vVVVYPG+fMQutQbNx/HCybKJzCmnOsFLjFToq 5/AlZ94oS4zYa5gWhDZU3zAn6tkh066Rq1y2lFWfGL4n660laHIU9hmjLrtjheR13Wax DGQgG/WMLloSRz4vBUDsEq+5O6rTevsWpMz76wJS+QHRI0TA8cQNa3twannHuJQqOACB I4b3n0Bq4pTIlyEwGWqv0hVfKe/fqP9XHb6SyQ35QjLDVjmUiXD+YG9QoOWsRrDkTgie SYkmNgvnrGL4KAWeVyJS+cOl/BhghlZ0RVBtRmiYH5TDL8VhU00Km8R3AIs2iuM/4RnN cWfw== Received: by 10.217.3.129 with SMTP id r1mr6935246wes.22.1348486665604; Mon, 24 Sep 2012 04:37:45 -0700 (PDT) Received: from localhost.localdomain ([93.50.34.119]) by mx.google.com with ESMTPS id v3sm14337141wiw.7.2012.09.24.04.37.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Sep 2012 04:37:44 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, crope@iki.fi Cc: mchehab@redhat.com, Gianluca Gennari Subject: [PATCH 2/3] fc2580: silence uninitialized variable warning Date: Mon, 24 Sep 2012 13:37:17 +0200 Message-Id: <1348486638-31169-3-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1348486638-31169-1-git-send-email-gennarone@gmail.com> References: <1348486638-31169-1-git-send-email-gennarone@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fc2580.c: In function 'fc2580_set_params': fc2580.c:118: warning: 'ret' may be used uninitialized in this function Signed-off-by: Gianluca Gennari --- drivers/media/tuners/fc2580.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index 036e94b..3ad68e9 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c @@ -115,7 +115,7 @@ static int fc2580_set_params(struct dvb_frontend *fe) { struct fc2580_priv *priv = fe->tuner_priv; struct dtv_frontend_properties *c = &fe->dtv_property_cache; - int ret, i; + int ret=0, i; unsigned int r_val, n_val, k_val, k_val_reg, f_ref; u8 tmp_val, r18_val; u64 f_vco;