cxgb4vf: remove obsolete DECLARE_PCI_UNMAP_ADDR usage
We could use DEFINE_DMA_UNMAP_ADDR instead but using CONFIG_NEED_DMA_MAP_STATE is a simpler way to see if a platform does real DMA unmapping. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
a204b48ed4
Коммит
57b2eaf7dd
|
@ -228,15 +228,11 @@ static inline bool is_buf_mapped(const struct rx_sw_desc *sdesc)
|
||||||
*/
|
*/
|
||||||
static inline int need_skb_unmap(void)
|
static inline int need_skb_unmap(void)
|
||||||
{
|
{
|
||||||
/*
|
#ifdef CONFIG_NEED_DMA_MAP_STATE
|
||||||
* This structure is used to tell if the platfrom needs buffer
|
return 1;
|
||||||
* unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything.
|
#else
|
||||||
*/
|
return 0;
|
||||||
struct dummy {
|
#endif
|
||||||
DECLARE_PCI_UNMAP_ADDR(addr);
|
|
||||||
};
|
|
||||||
|
|
||||||
return sizeof(struct dummy) != 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче