From: Gustavo Padovan Date: Mon, 3 Nov 2014 20:56:57 +0000 (-0200) Subject: drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe42cfb4908602f2fb6db7b849e170d2fa26fea1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe() We set it in the beginning of the function, thus no need to set it at initialization. Signed-off-by: Gustavo Padovan Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index abd2ca912bb2..863e98f48d2c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -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;