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

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
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment