Message ID | 1357127630-8167-1-git-send-email-prabhakar.lad@ti.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <davinci-linux-open-source-bounces@linux.davincidsp.com> X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by patchwork1.kernel.org (Postfix) with ESMTP id 2DAD03FE37 for <patchwork-davinci@patchwork.kernel.org>; Wed, 2 Jan 2013 11:58:15 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r02Bs8up006717; Wed, 2 Jan 2013 05:54:08 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r02Bs8sg016641; Wed, 2 Jan 2013 05:54:08 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Wed, 2 Jan 2013 05:54:07 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r02Bs7EO030803; Wed, 2 Jan 2013 05:54:07 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 9869C80627; Wed, 2 Jan 2013 05:54:07 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 6A40580626 for <davinci-linux-open-source@linux.davincidsp.com>; Wed, 2 Jan 2013 05:54:04 -0600 (CST) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r02Bs49p012274 for <davinci-linux-open-source@linux.davincidsp.com>; Wed, 2 Jan 2013 05:54:04 -0600 (CST) Received: from psmtp.com (na3sys009amx188.postini.com [74.125.149.169]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id r02Bs3HR004236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <davinci-linux-open-source@linux.davincidsp.com>; Wed, 2 Jan 2013 05:54:03 -0600 Received: from mail-pa0-f43.google.com ([209.85.220.43]) (using TLSv1) by na3sys009amx188.postini.com ([74.125.148.10]) with SMTP; Wed, 02 Jan 2013 11:54:03 GMT Received: by mail-pa0-f43.google.com with SMTP id fb10so7932984pad.2 for <davinci-linux-open-source@linux.davincidsp.com>; Wed, 02 Jan 2013 03:54:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=Kz18mVOVKs7rXZXGceDJ780CZ5+dshEwVoYXH7812zM=; b=as1rtDqR504KMJEkKlQldP8PkNBk0w/aJItNyxdcOnofAOxEcPjtVW3kNgIVkgpsyq yWQcitc7WmMwiLzApjtlf8b7Mvr8g2MjYFqc8iJjpCs7kqL23dsCEceT5JNUbiAe3l3R 2eWZ42asA7TDJStBLaOZbDvjUpW7WVFWQgmXiEXK+fTRfT6CfOSbRfGoGrJkccswcubd yF4XcJ18FuoJrzo5h00kOjA/upXdwE7zxbfLHW7/mLvm1PHO5ZPzUYSw/LJANGgc535e TN92kIO1RDK4qK8ZqZu4wzTaoGFto27bGbQdWokXbWcgqj7ubvKgiG6ERuvTamBX5ZXF Ob9Q== X-Received: by 10.66.83.165 with SMTP id r5mr136803699pay.3.1357127642772; Wed, 02 Jan 2013 03:54:02 -0800 (PST) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPS id wr4sm28323107pbc.72.2013.01.02.03.53.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Jan 2013 03:54:01 -0800 (PST) From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com> To: LMML <linux-media@vger.kernel.org> Subject: [PATCH] davinci: dm355: Fix uninitialized variable compiler warnings Date: Wed, 2 Jan 2013 17:23:49 +0530 Message-ID: <1357127630-8167-1-git-send-email-prabhakar.lad@ti.com> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S: 2.77605/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-dkim: 1 skipped:no-policies X-pstn-settings: 2 (0.5000:0.0050) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from <prabhakar.csengg@gmail.com> [82/3] CC: DLOS <davinci-linux-open-source@linux.davincidsp.com>, LKML <linux-kernel@vger.kernel.org>, Mauro Carvalho Chehab <mchehab@infradead.org> X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: <davinci-linux-open-source.linux.davincidsp.com> List-Unsubscribe: <http://linux.davincidsp.com/mailman/options/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=unsubscribe> List-Archive: <http://linux.davincidsp.com/pipermail/davinci-linux-open-source> List-Post: <mailto:davinci-linux-open-source@linux.davincidsp.com> List-Help: <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=help> List-Subscribe: <http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: <davinci-linux-open-source-bounces@linux.davincidsp.com> Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com |
diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c index ce0e413..3c28aaa 100644 --- a/drivers/media/platform/davinci/dm355_ccdc.c +++ b/drivers/media/platform/davinci/dm355_ccdc.c @@ -557,7 +557,7 @@ static int ccdc_config_vdfc(struct ccdc_vertical_dft *dfc) */ static void ccdc_config_csc(struct ccdc_csc *csc) { - u32 val1, val2; + u32 val1 = 0, val2; int i; if (!csc->enable)
drivers/media/platform/davinci/dm355_ccdc.c:593:9: warning: ‘val1’ may be used uninitialized in this function [-Wuninitialized] drivers/media/platform/davinci/dm355_ccdc.c:560:6: note: ‘val1’ was declared here This is a false positive but the compiler has no way to know about it, so initialize the variable to 0. Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com> --- drivers/media/platform/davinci/dm355_ccdc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)