Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
Russell King
244a2419 42b45459

+1 -5
+1 -5
drivers/gpu/drm/armada/armada_gem.c
··· 594 594 int ret; 595 595 596 596 dobj->sgt = dma_buf_map_attachment(dobj->obj.import_attach, 597 - DMA_TO_DEVICE); 598 - if (!dobj->sgt) { 599 - DRM_ERROR("dma_buf_map_attachment() returned NULL\n"); 600 - return -EINVAL; 601 - } 597 + DMA_TO_DEVICE); 602 598 if (IS_ERR(dobj->sgt)) { 603 599 ret = PTR_ERR(dobj->sgt); 604 600 dobj->sgt = NULL;