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/falcon.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/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 4cf05d0b5cfa..41b388b65996 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -40,21 +40,21 @@ extern struct efx_nic_type falcon_b_nic_type; | |||
40 | 40 | ||
41 | /* TX data path */ | 41 | /* TX data path */ |
42 | extern int falcon_probe_tx(struct efx_tx_queue *tx_queue); | 42 | extern int falcon_probe_tx(struct efx_tx_queue *tx_queue); |
43 | extern int falcon_init_tx(struct efx_tx_queue *tx_queue); | 43 | extern void falcon_init_tx(struct efx_tx_queue *tx_queue); |
44 | extern void falcon_fini_tx(struct efx_tx_queue *tx_queue); | 44 | extern void falcon_fini_tx(struct efx_tx_queue *tx_queue); |
45 | extern void falcon_remove_tx(struct efx_tx_queue *tx_queue); | 45 | extern void falcon_remove_tx(struct efx_tx_queue *tx_queue); |
46 | extern void falcon_push_buffers(struct efx_tx_queue *tx_queue); | 46 | extern void falcon_push_buffers(struct efx_tx_queue *tx_queue); |
47 | 47 | ||
48 | /* RX data path */ | 48 | /* RX data path */ |
49 | extern int falcon_probe_rx(struct efx_rx_queue *rx_queue); | 49 | extern int falcon_probe_rx(struct efx_rx_queue *rx_queue); |
50 | extern int falcon_init_rx(struct efx_rx_queue *rx_queue); | 50 | extern void falcon_init_rx(struct efx_rx_queue *rx_queue); |
51 | extern void falcon_fini_rx(struct efx_rx_queue *rx_queue); | 51 | extern void falcon_fini_rx(struct efx_rx_queue *rx_queue); |
52 | extern void falcon_remove_rx(struct efx_rx_queue *rx_queue); | 52 | extern void falcon_remove_rx(struct efx_rx_queue *rx_queue); |
53 | extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue); | 53 | extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue); |
54 | 54 | ||
55 | /* Event data path */ | 55 | /* Event data path */ |
56 | extern int falcon_probe_eventq(struct efx_channel *channel); | 56 | extern int falcon_probe_eventq(struct efx_channel *channel); |
57 | extern int falcon_init_eventq(struct efx_channel *channel); | 57 | extern void falcon_init_eventq(struct efx_channel *channel); |
58 | extern void falcon_fini_eventq(struct efx_channel *channel); | 58 | extern void falcon_fini_eventq(struct efx_channel *channel); |
59 | extern void falcon_remove_eventq(struct efx_channel *channel); | 59 | extern void falcon_remove_eventq(struct efx_channel *channel); |
60 | extern int falcon_process_eventq(struct efx_channel *channel, int rx_quota); | 60 | extern int falcon_process_eventq(struct efx_channel *channel, int rx_quota); |