Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d731af78 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller
Browse files

r8169: remove rtl8169_map_to_asic



This function is very simple and used only once, so we can inline
the two statements.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d0254dd
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -6713,12 +6713,6 @@ static inline void rtl8169_mark_to_asic(struct RxDesc *desc)
	desc->opts1 = cpu_to_le32(DescOwn | eor | R8169_RX_BUF_SIZE);
}

static inline void rtl8169_map_to_asic(struct RxDesc *desc, dma_addr_t mapping)
{
	desc->addr = cpu_to_le64(mapping);
	rtl8169_mark_to_asic(desc);
}

static inline void *rtl8169_align(void *data)
{
	return (void *)ALIGN((long)data, 16);
@@ -6751,7 +6745,8 @@ static struct sk_buff *rtl8169_alloc_rx_data(struct rtl8169_private *tp,
		goto err_out;
	}

	rtl8169_map_to_asic(desc, mapping);
	desc->addr = cpu_to_le64(mapping);
	rtl8169_mark_to_asic(desc);
	return data;

err_out: