Re: [PATCH v2] arm64/dma-mapping: Remove extraneous null-pointer checks

2017-06-14 Thread Catalin Marinas
On Tue, Jun 13, 2017 at 01:56:14PM -0700, Olav Haugan wrote: > The current null-pointer check in __dma_alloc_coherent and > __dma_free_coherent is not needed anymore since the > __dma_alloc/__dma_free functions won't be called if !dev (dummy ops will > be called instead). > > Signed-off-by: Olav H

[PATCH v2] arm64/dma-mapping: Remove extraneous null-pointer checks

2017-06-13 Thread Olav Haugan
The current null-pointer check in __dma_alloc_coherent and __dma_free_coherent is not needed anymore since the __dma_alloc/__dma_free functions won't be called if !dev (dummy ops will be called instead). Signed-off-by: Olav Haugan --- arch/arm64/include/asm/dma-mapping.h | 2 -- arch/arm64/mm/dm