diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-01-02 17:40:20 +0530 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2014-01-08 03:42:00 -0800 |
commit | 674db82ac5d039342d67e9fadd161a428a094fd9 (patch) | |
tree | 52c7456c8b75add12fd966a03bb0b4dd4e5623f5 | |
parent | 4d98e9673ddf5744dce084615c4474ec7af31a23 (diff) |
mmc: sdhci: tegra: fix Coverity issues
- fix deadcode
Coverity id : 24596
- fix uninitialized scalar variable
Coverity id : 24600
Bug 1416640
Change-Id: I901bce232a35a9878e7583df6c6605b4050fc3ba
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/352253
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 0b321d0ded5b..5d83c64d3c08 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -1,7 +1,7 @@ /* * Copyright (C) 2010 Google, Inc. * - * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -1597,7 +1597,7 @@ static unsigned int calculate_low_freq_tap_value(struct sdhci_host *sdhci, int best_tap_value; unsigned int tuning_ui; unsigned int sampling_point = 0; - bool select_partial_win; + bool select_partial_win = false; tuning_ui = tap_data->full_win_end - tap_data->partial_win; @@ -2791,8 +2791,6 @@ static ssize_t sdhci_handle_boost_mode_tap(struct device *dev, sdhci_tegra_set_tap_delay(host, tuning_data->nom_best_tap_value); break; - default: - break; } spin_unlock(&host->lock); if (clk_set_for_tap_prog) { |