From patchwork Mon Jun 18 04:55:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9376 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 658BF23E4F for ; Mon, 18 Jun 2012 05:06:58 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1B4AEA18680 for ; Mon, 18 Jun 2012 05:06:57 +0000 (UTC) Received: by obbun3 with SMTP id un3so8953291obb.11 for ; Sun, 17 Jun 2012 22:06:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=V4Z5MrUwnfjh1nbvUx1M/vw1wfnWSrvmbQJ3MDNmw+A=; b=piAtGAkqhORF2JdgNtq2tj6FjzWi7NWzRCob7dL9rHI1weNtnCQVpameZBdmAmSzU1 44WoObDLqnH0MTSd1+GMMd22rsm0peicgEGUdJJSvYien92c2nhzrVchUP+LeKMznycG iL585ZZi38cb7pvYnW7c3t3Ynilyd3H1ZOURc3EDqNq3BTO4sU5vawkQq1ZDwgT+IfYM aJAzpPMcjm7g32N+k6yJ/gzyX0RMDQBGC/wOypsGpb8gfhfvm3Kv7eHfEAY+1c39xsAN 4b4XFv2OxjFohDi/+ZVBVHQ59xMutjy4n8jO/eD/f/SpFlaK26H+0bBEq2FX/ld87Egu YSxQ== Received: by 10.50.46.232 with SMTP id y8mr7257649igm.57.1339996017348; Sun, 17 Jun 2012 22:06:57 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp47336ibb; Sun, 17 Jun 2012 22:06:56 -0700 (PDT) Received: by 10.68.228.136 with SMTP id si8mr47663429pbc.159.1339996016431; Sun, 17 Jun 2012 22:06:56 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id st8si19009973pbc.25.2012.06.17.22.06.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jun 2012 22:06:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so7215968dan.37 for ; Sun, 17 Jun 2012 22:06:55 -0700 (PDT) Received: by 10.68.241.8 with SMTP id we8mr47404355pbc.130.1339996015379; Sun, 17 Jun 2012 22:06:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ob9sm22550939pbb.28.2012.06.17.22.06.52 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jun 2012 22:06:54 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: jg1.han@samsung.com, FlorianSchandinat@gmx.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] video: exynos_dp: Fix compilation warning Date: Mon, 18 Jun 2012 10:25:17 +0530 Message-Id: <1339995317-17788-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnvj5Non9tTvUNcas/XNDLWkGb0lgCtzrmDT5h9gJwixU4iWxrD8u6Ml3SiSc5e/uXiPmU6 Fixes the following warning: drivers/video/exynos/exynos_dp_core.c: In function ‘exynos_dp_set_link_train’: drivers/video/exynos/exynos_dp_core.c:529:18: warning: ‘reg’ may be used uninitialized in this function [-Wuninitialized] drivers/video/exynos/exynos_dp_core.c:395:6: note: ‘reg’ was declared here Signed-off-by: Sachin Kamat --- drivers/video/exynos/exynos_dp_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index a36b2d2..017c727 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -392,7 +392,7 @@ static unsigned int exynos_dp_get_lane_link_training( struct exynos_dp_device *dp, int lane) { - u32 reg; + u32 reg = 0; switch (lane) { case 0: