diff options
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 9848892643fc..24b7233a803c 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -2110,7 +2110,7 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb) | |||
2110 | { | 2110 | { |
2111 | struct net_device *dev = nic->dev; | 2111 | struct net_device *dev = nic->dev; |
2112 | struct sk_buff *frag_list; | 2112 | struct sk_buff *frag_list; |
2113 | u64 tmp; | 2113 | void *tmp; |
2114 | 2114 | ||
2115 | /* Buffer-1 receives L3/L4 headers */ | 2115 | /* Buffer-1 receives L3/L4 headers */ |
2116 | ((RxD3_t*)rxdp)->Buffer1_ptr = pci_map_single | 2116 | ((RxD3_t*)rxdp)->Buffer1_ptr = pci_map_single |
@@ -2125,11 +2125,9 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb) | |||
2125 | } | 2125 | } |
2126 | frag_list = skb_shinfo(skb)->frag_list; | 2126 | frag_list = skb_shinfo(skb)->frag_list; |
2127 | frag_list->next = NULL; | 2127 | frag_list->next = NULL; |
2128 | tmp = (u64) frag_list->data; | 2128 | tmp = (void *)ALIGN((long)frag_list->data, ALIGN_SIZE + 1); |
2129 | tmp += ALIGN_SIZE; | 2129 | frag_list->data = tmp; |
2130 | tmp &= ~ALIGN_SIZE; | 2130 | frag_list->tail = tmp; |
2131 | frag_list->data = (void *) tmp; | ||
2132 | frag_list->tail = (void *) tmp; | ||
2133 | 2131 | ||
2134 | /* Buffer-2 receives L4 data payload */ | 2132 | /* Buffer-2 receives L4 data payload */ |
2135 | ((RxD3_t*)rxdp)->Buffer2_ptr = pci_map_single(nic->pdev, | 2133 | ((RxD3_t*)rxdp)->Buffer2_ptr = pci_map_single(nic->pdev, |