drm/imx: imx-tve: Remove unused variable
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 4 Jan 2017 15:44:56 +0000 (13:44 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jan 2017 08:44:20 +0000 (09:44 +0100)
'ret' is never used in tve_enable/tve_disable(), so just
remove it.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483544696-32707-1-git-send-email-fabio.estevam@nxp.com
drivers/gpu/drm/imx/imx-tve.c

index 3b602ee33c443a484e07b47d9e7d5aa280fa94de..8f8aa4a631222e312fa2ddedba37c84ddab92f00 100644 (file)
@@ -150,13 +150,11 @@ __releases(&tve->lock)
 
 static void tve_enable(struct imx_tve *tve)
 {
-       int ret;
-
        if (!tve->enabled) {
                tve->enabled = true;
                clk_prepare_enable(tve->clk);
-               ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
-                                        TVE_EN, TVE_EN);
+               regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
+                                  TVE_EN, TVE_EN);
        }
 
        /* clear interrupt status register */
@@ -174,12 +172,9 @@ static void tve_enable(struct imx_tve *tve)
 
 static void tve_disable(struct imx_tve *tve)
 {
-       int ret;
-
        if (tve->enabled) {
                tve->enabled = false;
-               ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
-                                        TVE_EN, 0);
+               regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, TVE_EN, 0);
                clk_disable_unprepare(tve->clk);
        }
 }