]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/tegra: gem: Remove some dead code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 30 Oct 2016 15:50:29 +0000 (16:50 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 7 Nov 2016 12:07:40 +0000 (13:07 +0100)
dma_buf_map_attachment() never returns NULL, so there is no need to
check for it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c

index 95e622e31931e60fde65785783eee812cc9ef1d1..19bf9cdf1f111c47af630fbdbf10450cd4eefab0 100644 (file)
@@ -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;