treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / swiotlb.h
blob3c1a1cd161286c53ad4201cb297376c1f1af5796
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2009 Becky Bruce, Freescale Semiconductor
4 */
6 #ifndef __ASM_SWIOTLB_H
7 #define __ASM_SWIOTLB_H
9 #include <linux/swiotlb.h>
11 extern unsigned int ppc_swiotlb_enable;
13 #ifdef CONFIG_SWIOTLB
14 void swiotlb_detect_4g(void);
15 #else
16 static inline void swiotlb_detect_4g(void) {}
17 #endif
19 #endif /* __ASM_SWIOTLB_H */