提交 244a2419 编写于 作者: C Christophe JAILLET 提交者: Russell King

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: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
上级 42b45459
...@@ -594,11 +594,7 @@ int armada_gem_map_import(struct armada_gem_object *dobj) ...@@ -594,11 +594,7 @@ int armada_gem_map_import(struct armada_gem_object *dobj)
int ret; int ret;
dobj->sgt = dma_buf_map_attachment(dobj->obj.import_attach, dobj->sgt = dma_buf_map_attachment(dobj->obj.import_attach,
DMA_TO_DEVICE); DMA_TO_DEVICE);
if (!dobj->sgt) {
DRM_ERROR("dma_buf_map_attachment() returned NULL\n");
return -EINVAL;
}
if (IS_ERR(dobj->sgt)) { if (IS_ERR(dobj->sgt)) {
ret = PTR_ERR(dobj->sgt); ret = PTR_ERR(dobj->sgt);
dobj->sgt = NULL; dobj->sgt = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册