OSDN Git Service

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)
commit577dfe16b852a90f26cf677cdc9113ec34199de6
tree12c8e916535935d9bf004fb26c66b973374d21fa
parentc484f2564db12fa2b01b198ecb6ff0751a3e5e32
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