Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1512094 > unrolled thread
| Started by | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| First post | 2016-10-30 17:00 +0100 |
| Last post | 2016-11-07 13:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] drm/tegra: gem: Remove some dead code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-10-30 17:00 +0100
Re: [PATCH] drm/tegra: gem: Remove some dead code Thierry Reding <thierry.reding@gmail.com> - 2016-11-07 13:20 +0100
| From | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
|---|---|
| Date | 2016-10-30 17:00 +0100 |
| Subject | [PATCH] drm/tegra: gem: Remove some dead code |
| Message-ID | <sy0GH-6xG-17@gated-at.bofh.it> |
'dma_buf_map_attachment()' can not return NULL, so there is no need to
check for it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/gpu/drm/tegra/gem.c | 5 -----
1 file changed, 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;
--
2.9.3
[toc] | [next] | [standalone]
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Date | 2016-11-07 13:20 +0100 |
| Message-ID | <sAR46-30v-29@gated-at.bofh.it> |
| In reply to | #1512094 |
[Multipart message — attachments visible in raw view] — view raw
On Sun, Oct 30, 2016 at 04:50:29PM +0100, Christophe JAILLET wrote: > 'dma_buf_map_attachment()' can not return NULL, so there is no need to > check for it. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> > --- > drivers/gpu/drm/tegra/gem.c | 5 ----- > 1 file changed, 5 deletions(-) Applied, thanks. Thierry
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web