diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-10-30 16:50:29 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-11-07 13:07:40 +0100 |
commit | cc09cb6da9b0eefe4b4e47a73170a349c4cf3426 (patch) | |
tree | 7daa989bcf2a8cdfb2c1aa27e2eb8bfb0c089f6a /drivers/gpu | |
parent | drm/tegra: sor: No need to free devm_ allocated memory (diff) | |
download | linux-cc09cb6da9b0eefe4b4e47a73170a349c4cf3426.tar.xz linux-cc09cb6da9b0eefe4b4e47a73170a349c4cf3426.zip |
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tegra/gem.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 95e622e31931..19bf9cdf1f11 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c @@ -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; |