Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* [PATCH 1/1] video: exynos_dp: Fix compilation warning
@ 2012-06-18  5:07 Sachin Kamat
  2012-06-18  5:22 ` Jingoo Han
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-06-18  5:07 UTC (permalink / raw)
  To: linux-fbdev

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 <sachin.kamat@linaro.org>
---
 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:
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-18  5:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18  5:07 [PATCH 1/1] video: exynos_dp: Fix compilation warning Sachin Kamat
2012-06-18  5:22 ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox