aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:06:47 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:58:55 -0500
commit9bc183d7f90793e5e72f4dfd21a5877c6cd4da78 (patch)
treee2a388bd628d1b3005f39c75978cc759563dff2c /drivers
parenteb50c0d67fe3c5513c717c2dee6d9771c51be703 (diff)
sfc: Remove unnecessary casts to struct sk_buff *
At some point these casts were used to remove const qualification, but they are now unneeded. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sfc/tx.c6
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: