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


Groups > linux.kernel > #1512088 > unrolled thread

[PATCH] drm/armada: Remove some dead code

Started byChristophe JAILLET <christophe.jaillet@wanadoo.fr>
First post2016-10-30 16:40 +0100
Last post2016-11-01 21:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/armada: Remove some dead code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-10-30 16:40 +0100
    Re: [PATCH] drm/armada: Remove some dead code Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-11-01 21:20 +0100

#1512088 — [PATCH] drm/armada: Remove some dead code

FromChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Date2016-10-30 16:40 +0100
Subject[PATCH] drm/armada: Remove some dead code
Message-ID<sy0ng-6qQ-13@gated-at.bofh.it>
'dma_buf_map_attachment()' can not return NULL, so there is no need to
check for it.

Also add a space in order to improve layout.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/gpu/drm/armada/armada_gem.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c
index 806791897304..17a77f22b497 100644
--- a/drivers/gpu/drm/armada/armada_gem.c
+++ b/drivers/gpu/drm/armada/armada_gem.c
@@ -594,11 +594,7 @@ int armada_gem_map_import(struct armada_gem_object *dobj)
 	int ret;
 
 	dobj->sgt = dma_buf_map_attachment(dobj->obj.import_attach,
-					  DMA_TO_DEVICE);
-	if (!dobj->sgt) {
-		DRM_ERROR("dma_buf_map_attachment() returned NULL\n");
-		return -EINVAL;
-	}
+					   DMA_TO_DEVICE);
 	if (IS_ERR(dobj->sgt)) {
 		ret = PTR_ERR(dobj->sgt);
 		dobj->sgt = NULL;
-- 
2.9.3

[toc] | [next] | [standalone]


#1513488

FromRussell King - ARM Linux <linux@armlinux.org.uk>
Date2016-11-01 21:20 +0100
Message-ID<syNHj-4Yb-1@gated-at.bofh.it>
In reply to#1512088
On Sun, Oct 30, 2016 at 04:38:42PM +0100, Christophe JAILLET wrote:
> 'dma_buf_map_attachment()' can not return NULL, so there is no need to
> check for it.
> 
> Also add a space in order to improve layout.

Thanks, applied.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web