projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4141e74
)
drm/tegra: gem: Remove some dead code
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 30 Oct 2016 15:50:29 +0000
(16:50 +0100)
committer
Thierry 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/gem.c
b/drivers/gpu/drm/tegra/gem.c
index
95e622e
..
19bf9cd
100644
(file)
--- 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;