diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:48:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:48 -0400 |
commit | bc3c90a2b70652b87cde8de65275d6f41d0f24c3 (patch) | |
tree | 3d9a7eebad85bc86f5a3fbd4fdf4cc2b7be950a4 /drivers/net/sfc/tx.h | |
parent | c1e5fcc980b7b2185b29e4f9f0d8266806ada9eb (diff) |
sfc: Remove some unreachable error paths
Some functions return an error code which is always 0. Change their
return types to void and simplify their callers accordingly.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/tx.h')
-rw-r--r-- | drivers/net/sfc/tx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/tx.h b/drivers/net/sfc/tx.h index 1526a73b4b51..5e1cc234e42f 100644 --- a/drivers/net/sfc/tx.h +++ b/drivers/net/sfc/tx.h | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); | 16 | int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); |
17 | void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); | 17 | void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); |
18 | int efx_init_tx_queue(struct efx_tx_queue *tx_queue); | 18 | void efx_init_tx_queue(struct efx_tx_queue *tx_queue); |
19 | void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); | 19 | void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); |
20 | 20 | ||
21 | int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); | 21 | int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); |