video: tegra: dc: fix unused variable warning
Jon Mayo [Fri, 1 Jun 2012 23:18:45 +0000 (16:18 -0700)]
remove and rename unused variable in tega_dc_get_stride
Signed-off-by: Jon Mayo <jmayo@nvidia.com>

Change-Id: I0d101de22c08609f9727469ad7e4708de8de59ef
Reviewed-on: http://git-master/r/106072
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

drivers/video/tegra/dc/dc.c

index d5d0602..e8b650c 100644 (file)
@@ -587,7 +587,6 @@ static unsigned int tegra_dc_has_multiple_dc(void)
  * return: stride size in bytes for window win. or 0 if unavailble. */
 int tegra_dc_get_stride(struct tegra_dc *dc, unsigned win)
 {
-       u32 tmp;
        u32 stride;
 
        if (!dc->enabled)
@@ -595,8 +594,8 @@ int tegra_dc_get_stride(struct tegra_dc *dc, unsigned win)
        BUG_ON(win > DC_N_WINDOWS);
        tegra_dc_writel(dc, WINDOW_A_SELECT << win,
                DC_CMD_DISPLAY_WINDOW_HEADER);
-       tmp = tegra_dc_readl(dc, DC_WIN_LINE_STRIDE);
-       return GET_LINE_STRIDE(tmp);
+       stride = tegra_dc_readl(dc, DC_WIN_LINE_STRIDE);
+       return GET_LINE_STRIDE(stride);
 }
 EXPORT_SYMBOL(tegra_dc_get_stride);