ARM: tegra: macallan: fix Coverity issue
Deepak Nibade [Tue, 4 Jun 2013 14:48:41 +0000 (19:48 +0530)]
- fix uninitialized scalar variable
  Coverity id : 23406

Bug 1046331

Change-Id: Iddc42251f7ecfd2e406eadd6af64b6b641cf1464
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/235482
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/board-macallan-panel.c

index bcfd4fe..5981c12 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/board-macallan-panel.c
  *
- * Copyright (c) 2013, NVIDIA Corporation.
+ * Copyright (c) 2013, NVIDIA Corporation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -385,7 +385,7 @@ static void macallan_panel_select(void)
 {
        struct tegra_panel *panel = NULL;
        struct board_info board;
-       u8 dsi_instance;
+       u8 dsi_instance = DSI_INSTANCE_0;
 
        tegra_get_display_board_info(&board);
 
@@ -395,7 +395,6 @@ static void macallan_panel_select(void)
                break;
        default:
                panel = &dsi_p_wuxga_10_1;
-               dsi_instance = DSI_INSTANCE_0;
                break;
        }
        if (panel) {