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

Commit cc09cb6d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Thierry Reding
Browse files

drm/tegra: gem: Remove some dead code



dma_buf_map_attachment() never returns NULL, so there is no need to
check for it.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 4141e744
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -318,11 +318,6 @@ static struct tegra_bo *tegra_bo_import(struct drm_device *drm,
	get_dma_buf(buf);

	bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE);
	if (!bo->sgt) {
		err = -ENOMEM;
		goto detach;
	}

	if (IS_ERR(bo->sgt)) {
		err = PTR_ERR(bo->sgt);
		goto detach;