mmc: sdhci: tegra: initialize local variable
Bibek Basu [Mon, 29 Sep 2014 07:28:00 +0000 (12:28 +0530)]
Initialize uninitialized variable
vmin_tap_hole & vmax_tap_hole

Bug 200042035

Change-Id: I5e9303f2b585423d936b289a59228028275ec5ec
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/542582
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index 605df7a..485570c 100644 (file)
@@ -1918,8 +1918,8 @@ static int adjust_window_boundaries(struct sdhci_host *sdhci,
        struct tap_window_data *temp_tap_data)
 {
        struct tap_window_data *tap_data;
-       int vmin_tap_hole;
-       int vmax_tap_hole;
+       int vmin_tap_hole = 0;
+       int vmax_tap_hole = 0;
        u8 i = 0;
 
        for (i = 0; i < tuning_data->num_of_valid_tap_wins; i++) {