[15/22] net/ena: remove endian swap functions

Message ID 20210430125725.28796-16-mk@semihalf.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Series net/ena: update ENA PMD to v2.3.0 |


Context Check Description
ci/checkpatch success coding style OK

Commit Message

Michal Krawczyk April 30, 2021, 12:57 p.m. UTC
  From: Stanislaw Kardach <kda@semihalf.com>

swap*_*_le() functions are not used anywhere and besides there are rte
alternatives already present.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Shay Agroskin <shayagr@amazon.com>
 drivers/net/ena/ena_platform.h | 12 ------------
 1 file changed, 12 deletions(-)


diff --git a/drivers/net/ena/ena_platform.h b/drivers/net/ena/ena_platform.h
index d3e40e0e9e..748928b2d9 100644
--- a/drivers/net/ena/ena_platform.h
+++ b/drivers/net/ena/ena_platform.h
@@ -6,18 +6,6 @@ 
 #ifndef __ENA_PLATFORM_H__
 #define __ENA_PLATFORM_H__
-#define swap16_to_le(x)		(x)
-#define swap32_to_le(x)		(x)
-#define swap64_to_le(x)		(x)
-#define swap16_from_le(x)       (x)
-#define swap32_from_le(x)	(x)
-#define swap64_from_le(x)	(x)
 #define ena_assert_msg(cond, msg)		\
 	do {					\
 		if (unlikely(!(cond))) {	\