]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/dma-mapping: Remove extraneous null-pointer checks
authorOlav Haugan <ohaugan@codeaurora.org>
Tue, 13 Jun 2017 20:56:14 +0000 (13:56 -0700)
committerWill Deacon <will.deacon@arm.com>
Thu, 15 Jun 2017 10:40:22 +0000 (11:40 +0100)
commit98f50368462a87b2aab4775ff11fe896671d3136
tree12c8e916535935d9bf004fb26c66b973374d21fa
parentfbfe88e3f4730ea5fa19a1d4275366cfa0ff4158
arm64/dma-mapping: Remove extraneous null-pointer checks

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).

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/dma-mapping.h
arch/arm64/mm/dma-mapping.c