summaryrefslogtreecommitdiff
path: root/drivers/video/exynos
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-06-20 01:25:48 (GMT)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-06-24 13:54:31 (GMT)
commit64c43dfa8636a8b7c8f40e8f93eb91aca049f8bb (patch)
tree4603d1c559bd6e493b6fd1cbc127b3e5a2f771c6 /drivers/video/exynos
parent485802a6c524e62b5924849dd727ddbb1497cc71 (diff)
downloadlinux-64c43dfa8636a8b7c8f40e8f93eb91aca049f8bb.tar.xz
video: exynos_dp: fix build warning due to uninitialized value
This patch fixes build warning due to uninitialized value dereference. 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: Olof Johansson <olof@lixom.net> Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/exynos')
-rw-r--r--drivers/video/exynos/exynos_dp_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c
index a36b2d2..9db7b9f 100644
--- a/drivers/video/exynos/exynos_dp_core.c
+++ b/drivers/video/exynos/exynos_dp_core.c
@@ -407,6 +407,9 @@ static unsigned int exynos_dp_get_lane_link_training(
case 3:
reg = exynos_dp_get_lane3_link_training(dp);
break;
+ default:
+ WARN_ON(1);
+ return 0;
}
return reg;