diff options
author | Olav Haugan <ohaugan@codeaurora.org> | 2017-06-13 23:56:14 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-06-15 13:40:22 +0300 |
commit | 577dfe16b852a90f26cf677cdc9113ec34199de6 (patch) | |
tree | 12c8e916535935d9bf004fb26c66b973374d21fa /arch/arm64/include/asm | |
parent | c484f2564db12fa2b01b198ecb6ff0751a3e5e32 (diff) | |
download | linux-577dfe16b852a90f26cf677cdc9113ec34199de6.tar.xz |
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>
Diffstat (limited to 'arch/arm64/include/asm')
-rw-r--r-- | arch/arm64/include/asm/dma-mapping.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/dma-mapping.h b/arch/arm64/include/asm/dma-mapping.h index 5392dbeffa45..f72779aad276 100644 --- a/arch/arm64/include/asm/dma-mapping.h +++ b/arch/arm64/include/asm/dma-mapping.h @@ -48,8 +48,6 @@ void arch_teardown_dma_ops(struct device *dev); /* do not use this function in a driver */ static inline bool is_device_dma_coherent(struct device *dev) { - if (!dev) - return false; return dev->archdata.dma_coherent; } |