drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe()
Subsystems (3)
PATCH 1/2 drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe()
From: Gustavo Padovan <[email protected]>
We set it in the beginning of the function, thus no need to set it at initialization.
Signed-off-by Gustavo Padovan <[email protected]>
--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -1
@@ -1134,7 +1134,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 ;
Signature · 6 lines
1.9.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/exynos/vidi: remove useless ops->commit()
From: Gustavo Padovan <[email protected]>
vidi_commit does nothing, remove it and its callers.
Signed-off-by Gustavo Padovan <[email protected]>
--- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_vidi.c +0 -12
@@ -115,17 +115,6 @@ static void vidi_apply(struct exynos_drm_manager *mgr)if (win_data->enabled && (mgr_ops && mgr_ops->win_commit)) mgr_ops->win_commit (mgr, i); } - -if (mgr_ops && mgr_ops->commit) - mgr_ops->commit (mgr); -} - -static void vidi_commit (struct exynos_drm_manager *mgr) -{ -struct vidi_context *ctx =manager_to_vidi (mgr); - -if (ctx->suspended) -return ; }static int vidi_enable_vblank (struct exynos_drm_manager *mgr)
@@ -320,7 +309,6 @@ static int vidi_mgr_initialize(struct exynos_drm_manager *mgr,static struct exynos_drm_manager_ops vidi_manager_ops = { .dpms = vidi_dpms, - .commit = vidi_commit, .enable_vblank = vidi_enable_vblank, .disable_vblank = vidi_disable_vblank, .win_mode_set = vidi_win_mode_set,
Signature · 6 lines
1.9.3 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel