diff options
author | Jingoo Han <jg1.han@samsung.com> | 2012-06-20 10:25:48 +0900 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-06-24 13:54:31 +0000 |
commit | 64c43dfa8636a8b7c8f40e8f93eb91aca049f8bb (patch) | |
tree | 4603d1c559bd6e493b6fd1cbc127b3e5a2f771c6 | |
parent | 485802a6c524e62b5924849dd727ddbb1497cc71 (diff) | |
download | linux-64c43dfa8636a8b7c8f40e8f93eb91aca049f8bb.tar.bz2 |
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>
-rw-r--r-- | drivers/video/exynos/exynos_dp_core.c | 3 |
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 a36b2d28280e..9db7b9f581e6 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; |