Skip to content

Commit

Permalink
net/ena: remove endian swap functions
Browse files Browse the repository at this point in the history
[ upstream commit 07ebd5d ]

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

Fixes: 1173fca ("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>
  • Loading branch information
semihalf-kardach-stanislaw authored and cpaelzer committed Jun 10, 2021
1 parent 0731d40 commit 072f1be
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/net/ena/ena_platform.h
Expand Up @@ -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))) { \
Expand Down

0 comments on commit 072f1be

Please sign in to comment.