Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1512094 > unrolled thread

[PATCH] drm/tegra: gem: Remove some dead code

Started byChristophe JAILLET <christophe.jaillet@wanadoo.fr>
First post2016-10-30 17:00 +0100
Last post2016-11-07 13:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [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

#1512094 — [PATCH] drm/tegra: gem: Remove some dead code

FromChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Date2016-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]


#1516057

FromThierry Reding <thierry.reding@gmail.com>
Date2016-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