* [PATCH] drm/tegra: gem: Remove some dead code
@ 2016-10-30 15:50 Christophe JAILLET
2016-11-07 12:07 ` Thierry Reding
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2016-10-30 15:50 UTC (permalink / raw)
To: thierry.reding, airlied, swarren, gnurou
Cc: dri-devel, linux-kernel, kernel-janitors, Christophe JAILLET
'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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/tegra: gem: Remove some dead code
2016-10-30 15:50 [PATCH] drm/tegra: gem: Remove some dead code Christophe JAILLET
@ 2016-11-07 12:07 ` Thierry Reding
0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2016-11-07 12:07 UTC (permalink / raw)
To: Christophe JAILLET
Cc: airlied, swarren, gnurou, dri-devel, linux-kernel, kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-07 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-30 15:50 [PATCH] drm/tegra: gem: Remove some dead code Christophe JAILLET
2016-11-07 12:07 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).