Skip to content

Commit b9c6338

Browse files
mszyprowdaeinki
authored andcommitted
drm/exynos: Properly propagate return value in drm_iommu_attach_device()
Propagate the proper error codes from the called functions instead of unconditionally returning 0. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Merge conflict so merged it manually. Signed-off-by: Inki Dae <[email protected]>
1 parent aee83fb commit b9c6338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int drm_iommu_attach_device(struct drm_device *drm_dev,
6161
struct device *subdrv_dev, void **dma_priv)
6262
{
6363
struct exynos_drm_private *priv = drm_dev->dev_private;
64-
int ret;
64+
int ret = 0;
6565

6666
if (get_dma_ops(priv->dma_dev) != get_dma_ops(subdrv_dev)) {
6767
DRM_DEV_ERROR(subdrv_dev, "Device %s lacks support for IOMMU\n",
@@ -92,7 +92,7 @@ static int drm_iommu_attach_device(struct drm_device *drm_dev,
9292
if (ret)
9393
clear_dma_max_seg_size(subdrv_dev);
9494

95-
return 0;
95+
return ret;
9696
}
9797

9898
/*

0 commit comments

Comments
 (0)