Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 362edccc authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Inki Dae
Browse files

drm/exynos: Consolidate return statements in fimd_bind()



Simplify the code and remove superfluous return statement. Just return
the result of fimd_iommu_attach_devices().

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent f3aaf762
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1042,12 +1042,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data)
	if (ctx->display)
		exynos_drm_create_enc_conn(drm_dev, ctx->display);

	ret = fimd_iommu_attach_devices(ctx, drm_dev);
	if (ret)
		return ret;

	return 0;

	return fimd_iommu_attach_devices(ctx, drm_dev);
}

static void fimd_unbind(struct device *dev, struct device *master,