summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2018-04-18 00:26:41 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-19 04:11:58 +0300
commitd731af7822cc80ee2735ac2188023c95339c136b (patch)
tree7717d40669c77d9ae210e82f6212948a3d00d44d
parent1d0254dd9b44dd187cbbdfe42f9b2cb6b4aa36a4 (diff)
downloadlinux-d731af7822cc80ee2735ac2188023c95339c136b.tar.xz
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: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/realtek/r8169.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index c68771d0e89b..347c61521e56 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -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: