Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203422
b: refs/heads/master
c: 122e28e
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and David S. Miller committed Jul 9, 2010
1 parent b49919b commit 24c7fb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57b2eaf7ddeae307fac202d82a6fabf5976e575b
refs/heads/master: 122e28ebac2cc2378101d1d37a5886c3ac1f8b18
14 changes: 5 additions & 9 deletions trunk/drivers/net/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,11 @@ static inline void refill_rspq(struct adapter *adapter,
*/
static inline int need_skb_unmap(void)
{
/*
* This structure is used to tell if the platform needs buffer
* unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything.
*/
struct dummy {
DEFINE_DMA_UNMAP_ADDR(addr);
};

return sizeof(struct dummy) != 0;
#ifdef CONFIG_NEED_DMA_MAP_STATE
return 1;
#else
return 0;
#endif
}

/**
Expand Down

0 comments on commit 24c7fb7

Please sign in to comment.