summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada/armada_gem.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-10-30 16:38:42 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-11-17 01:02:50 +0100
commit244a2419b6c6dc8a4d301d565fbb0b9ad93d035c (patch)
tree8d763f1588540a5b2fc436c56011d432e3b70b01 /drivers/gpu/drm/armada/armada_gem.c
parentdrm/armada: mark symbols static where possible (diff)
downloadlinux-244a2419b6c6dc8a4d301d565fbb0b9ad93d035c.tar.xz
linux-244a2419b6c6dc8a4d301d565fbb0b9ad93d035c.zip
drm/armada: remove some dead code
'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> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/armada/armada_gem.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c
index b52ecfd9ca7a..fd92446f9cce 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;