提交 cc09cb6d 编写于 作者: C Christophe JAILLET 提交者: Thierry Reding

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: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 4141e744
...@@ -318,11 +318,6 @@ static struct tegra_bo *tegra_bo_import(struct drm_device *drm, ...@@ -318,11 +318,6 @@ static struct tegra_bo *tegra_bo_import(struct drm_device *drm,
get_dma_buf(buf); get_dma_buf(buf);
bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); bo->sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE);
if (!bo->sgt) {
err = -ENOMEM;
goto detach;
}
if (IS_ERR(bo->sgt)) { if (IS_ERR(bo->sgt)) {
err = PTR_ERR(bo->sgt); err = PTR_ERR(bo->sgt);
goto detach; goto detach;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册