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>
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);
goto err_out;
}
- rtl8169_map_to_asic(desc, mapping);
+ desc->addr = cpu_to_le64(mapping);
+ rtl8169_mark_to_asic(desc);
return data;
err_out: