Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 244a2419 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Russell King
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 42b45459
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -595,10 +595,6 @@ int armada_gem_map_import(struct armada_gem_object *dobj)

	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;
	}
	if (IS_ERR(dobj->sgt)) {
		ret = PTR_ERR(dobj->sgt);
		dobj->sgt = NULL;