提交 122e28eb 编写于 作者: F FUJITA Tomonori 提交者: David S. Miller

cxgb3: simplify need_skb_unmap

We can use CONFIG_NEED_DMA_MAP_STATE to see if a platform does real
DMA unmapping.
Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 57b2eaf7
...@@ -203,15 +203,11 @@ static inline void refill_rspq(struct adapter *adapter, ...@@ -203,15 +203,11 @@ static inline void refill_rspq(struct adapter *adapter,
*/ */
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 platform needs buffer return 1;
* unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything. #else
*/ return 0;
struct dummy { #endif
DEFINE_DMA_UNMAP_ADDR(addr);
};
return sizeof(struct dummy) != 0;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册