drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 3 Nov 2014 20:56:57 +0000 (18:56 -0200)
committerInki Dae <daeinki@gmail.com>
Sun, 25 Jan 2015 12:28:03 +0000 (21:28 +0900)
We  set it in the beginning of the function, thus no need to set it at
initialization.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c

index abd2ca912bb2ea9b479683e486fbcb3fdf938c3a..863e98f48d2cd9a616e1f295c86603fedd0c3197 100644 (file)
@@ -1108,7 +1108,7 @@ static int fimd_probe(struct platform_device *pdev)
        struct fimd_context *ctx;
        struct device_node *i80_if_timings;
        struct resource *res;
-       int ret = -EINVAL;
+       int ret;
 
        if (!dev->of_node)
                return -ENODEV;