treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / dma-direct.h
blobabc154d784b078a3fb4f1151686439f274689622
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASM_POWERPC_DMA_DIRECT_H
3 #define ASM_POWERPC_DMA_DIRECT_H 1
5 static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
7 return paddr + dev->archdata.dma_offset;
10 static inline phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr)
12 return daddr - dev->archdata.dma_offset;
14 #endif /* ASM_POWERPC_DMA_DIRECT_H */