From patchwork Tue Nov 18 10:57:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5327231 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 17B61C11AC for ; Tue, 18 Nov 2014 10:58:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 582D420176 for ; Tue, 18 Nov 2014 10:58:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82F57200F4 for ; Tue, 18 Nov 2014 10:58:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681AbaKRK6O (ORCPT ); Tue, 18 Nov 2014 05:58:14 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:42683 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbaKRK6L (ORCPT ); Tue, 18 Nov 2014 05:58:11 -0500 Received: by mail-wi0-f172.google.com with SMTP id n3so1360001wiv.17 for ; Tue, 18 Nov 2014 02:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=QZ2GnWt2hDz1JUlK70hKtFLQolIUCRtd/SLHiI6inAQ=; b=G4GxIJm4fvRFrak4ziRj+RBkmS5AUloOVNPs/ph1lQxfFfHNSu/3LGhOH+LZdJNDqD jyXwrfZ/eHsyvjpRPkQwzGkTvPxWUpMX7lIRG4a6UfavgXVq9Gu9mOZhubBlCqEf3JJF 5nD0eX224imZaEZR2EUAo/jCh2GIdLzAI8i1MKGI7tCJ7A53C3Z19Vi2LeQ1Ql80tNGC WA22OdlP83hVeSNx236mikuPQ//uGNHvqgjMlRvbi0QppeYth0F99zdbXZMQdKp0O1V6 BbAgRsujIOsaPhUEsvur6hkBaZ/2HgRUMCo2VNcDlgy0XcGDlcGJIX5LzBIDGBCIO+qf qDmw== X-Received: by 10.194.92.116 with SMTP id cl20mr47635071wjb.71.1416308290408; Tue, 18 Nov 2014 02:58:10 -0800 (PST) Received: from tango-charlie.RL.local ([194.72.83.162]) by mx.google.com with ESMTPSA id td9sm19028665wic.15.2014.11.18.02.58.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Nov 2014 02:58:09 -0800 (PST) From: "Lad, Prabhakar" To: Kukjin Kim , Mauro Carvalho Chehab , LMML Cc: linux-samsung-soc@vger.kernel.org, LKML , "Lad, Prabhakar" Subject: [PATCH] media: exynos-gsc: fix build warning Date: Tue, 18 Nov 2014 10:57:48 +0000 Message-Id: <1416308268-22957-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 this patch fixes following build warning: gsc-core.c:350:17: warning: 'low_plane' may be used uninitialized gsc-core.c:371:31: warning: 'high_plane' may be used uninitialized Signed-off-by: Lad, Prabhakar --- drivers/media/platform/exynos-gsc/gsc-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 91d226b..6c71b17 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -347,8 +347,8 @@ void gsc_set_prefbuf(struct gsc_dev *gsc, struct gsc_frame *frm) s_chk_addr = frm->addr.cb; s_chk_len = frm->payload[1]; } else if (frm->fmt->num_planes == 3) { - u32 low_addr, low_plane, mid_addr, mid_plane; - u32 high_addr, high_plane; + u32 low_addr, low_plane = 0, mid_addr, mid_plane; + u32 high_addr, high_plane = 0; u32 t_min, t_max; t_min = min3(frm->addr.y, frm->addr.cb, frm->addr.cr);