diff options
| -rw-r--r-- | drivers/net/sfc/tx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/tx.c b/drivers/net/sfc/tx.c index 303919a34df6..e11632bd4138 100644 --- a/drivers/net/sfc/tx.c +++ b/drivers/net/sfc/tx.c | |||
| @@ -173,7 +173,7 @@ static netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, | |||
| 173 | 173 | ||
| 174 | EFX_BUG_ON_PARANOID(tx_queue->write_count != tx_queue->insert_count); | 174 | EFX_BUG_ON_PARANOID(tx_queue->write_count != tx_queue->insert_count); |
| 175 | 175 | ||
| 176 | if (skb_shinfo((struct sk_buff *)skb)->gso_size) | 176 | if (skb_shinfo(skb)->gso_size) |
| 177 | return efx_enqueue_skb_tso(tx_queue, skb); | 177 | return efx_enqueue_skb_tso(tx_queue, skb); |
| 178 | 178 | ||
| 179 | /* Get size of the initial fragment */ | 179 | /* Get size of the initial fragment */ |
| @@ -287,7 +287,7 @@ static netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, | |||
| 287 | skb_shinfo(skb)->nr_frags + 1); | 287 | skb_shinfo(skb)->nr_frags + 1); |
| 288 | 288 | ||
| 289 | /* Mark the packet as transmitted, and free the SKB ourselves */ | 289 | /* Mark the packet as transmitted, and free the SKB ourselves */ |
| 290 | dev_kfree_skb_any((struct sk_buff *)skb); | 290 | dev_kfree_skb_any(skb); |
| 291 | goto unwind; | 291 | goto unwind; |
| 292 | 292 | ||
| 293 | stop: | 293 | stop: |
| @@ -1102,7 +1102,7 @@ static int efx_enqueue_skb_tso(struct efx_tx_queue *tx_queue, | |||
| 1102 | 1102 | ||
| 1103 | mem_err: | 1103 | mem_err: |
| 1104 | EFX_ERR(efx, "Out of memory for TSO headers, or PCI mapping error\n"); | 1104 | EFX_ERR(efx, "Out of memory for TSO headers, or PCI mapping error\n"); |
| 1105 | dev_kfree_skb_any((struct sk_buff *)skb); | 1105 | dev_kfree_skb_any(skb); |
| 1106 | goto unwind; | 1106 | goto unwind; |
| 1107 | 1107 | ||
| 1108 | stop: | 1108 | stop: |
