[PATCH 2/4] MIPS: dma: remove unnecessary ifdefs

Denis Orlov denorl2009 at gmail.com
Fri Feb 10 06:47:43 PST 2023


We do not support any MIPS CPUs that are not MIPS32/MIPS64, so there is
no reason to check for those.

Signed-off-by: Denis Orlov <denorl2009 at gmail.com>
---
 arch/mips/lib/dma-default.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/mips/lib/dma-default.c b/arch/mips/lib/dma-default.c
index fbe627c24c..48176e5d28 100644
--- a/arch/mips/lib/dma-default.c
+++ b/arch/mips/lib/dma-default.c
@@ -6,8 +6,6 @@
 #include <dma.h>
 #include <asm/io.h>
 
-#if defined(CONFIG_CPU_MIPS32) || \
-	defined(CONFIG_CPU_MIPS64)
 static inline void __dma_sync_mips(unsigned long addr, size_t size,
 				   enum dma_data_direction direction)
 {
@@ -28,12 +26,6 @@ static inline void __dma_sync_mips(unsigned long addr, size_t size,
 		BUG();
 	}
 }
-#else
-static inline void __dma_sync_mips(void *addr, size_t size,
-	enum dma_data_direction direction)
-{
-}
-#endif
 
 void dma_sync_single_for_cpu(dma_addr_t address, size_t size,
 			     enum dma_data_direction dir)
-- 
2.30.2




More information about the barebox mailing list