aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-09-01 07:48:46 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-03 09:53:48 -0400
commitbc3c90a2b70652b87cde8de65275d6f41d0f24c3 (patch)
tree3d9a7eebad85bc86f5a3fbd4fdf4cc2b7be950a4 /drivers/net
parentc1e5fcc980b7b2185b29e4f9f0d8266806ada9eb (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')
-rw-r--r--drivers/net/sfc/efx.c76
-rw-r--r--drivers/net/sfc/efx.h2
-rw-r--r--drivers/net/sfc/ethtool.c8
-rw-r--r--drivers/net/sfc/falcon.c30
-rw-r--r--drivers/net/sfc/falcon.h6
-rw-r--r--drivers/net/sfc/rx.c4
-rw-r--r--drivers/net/sfc/rx.h2
-rw-r--r--drivers/net/sfc/tx.c4
-rw-r--r--drivers/net/sfc/tx.h2
9 files changed, 39 insertions, 95 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index c41035a9938..f226dcf18c7 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -282,13 +282,13 @@ static int efx_probe_eventq(struct efx_channel *channel)
282} 282}
283 283
284/* Prepare channel's event queue */ 284/* Prepare channel's event queue */
285static int efx_init_eventq(struct efx_channel *channel) 285static void efx_init_eventq(struct efx_channel *channel)
286{ 286{
287 EFX_LOG(channel->efx, "chan %d init event queue\n", channel->channel); 287 EFX_LOG(channel->efx, "chan %d init event queue\n", channel->channel);
288 288
289 channel->eventq_read_ptr = 0; 289 channel->eventq_read_ptr = 0;
290 290
291 return falcon_init_eventq(channel); 291 falcon_init_eventq(channel);
292} 292}
293 293
294static void efx_fini_eventq(struct efx_channel *channel) 294static void efx_fini_eventq(struct efx_channel *channel)
@@ -354,12 +354,11 @@ static int efx_probe_channel(struct efx_channel *channel)
354 * to propagate configuration changes (mtu, checksum offload), or 354 * to propagate configuration changes (mtu, checksum offload), or
355 * to clear hardware error conditions 355 * to clear hardware error conditions
356 */ 356 */
357static int efx_init_channels(struct efx_nic *efx) 357static void efx_init_channels(struct efx_nic *efx)
358{ 358{
359 struct efx_tx_queue *tx_queue; 359 struct efx_tx_queue *tx_queue;
360 struct efx_rx_queue *rx_queue; 360 struct efx_rx_queue *rx_queue;
361 struct efx_channel *channel; 361 struct efx_channel *channel;
362 int rc = 0;
363 362
364 /* Calculate the rx buffer allocation parameters required to 363 /* Calculate the rx buffer allocation parameters required to
365 * support the current MTU, including padding for header 364 * support the current MTU, including padding for header
@@ -374,36 +373,20 @@ static int efx_init_channels(struct efx_nic *efx)
374 efx_for_each_channel(channel, efx) { 373 efx_for_each_channel(channel, efx) {
375 EFX_LOG(channel->efx, "init chan %d\n", channel->channel); 374 EFX_LOG(channel->efx, "init chan %d\n", channel->channel);
376 375
377 rc = efx_init_eventq(channel); 376 efx_init_eventq(channel);
378 if (rc)
379 goto err;
380 377
381 efx_for_each_channel_tx_queue(tx_queue, channel) { 378 efx_for_each_channel_tx_queue(tx_queue, channel)
382 rc = efx_init_tx_queue(tx_queue); 379 efx_init_tx_queue(tx_queue);
383 if (rc)
384 goto err;
385 }
386 380
387 /* The rx buffer allocation strategy is MTU dependent */ 381 /* The rx buffer allocation strategy is MTU dependent */
388 efx_rx_strategy(channel); 382 efx_rx_strategy(channel);
389 383
390 efx_for_each_channel_rx_queue(rx_queue, channel) { 384 efx_for_each_channel_rx_queue(rx_queue, channel)
391 rc = efx_init_rx_queue(rx_queue); 385 efx_init_rx_queue(rx_queue);
392 if (rc)
393 goto err;
394 }
395 386
396 WARN_ON(channel->rx_pkt != NULL); 387 WARN_ON(channel->rx_pkt != NULL);
397 efx_rx_strategy(channel); 388 efx_rx_strategy(channel);
398 } 389 }
399
400 return 0;
401
402 err:
403 EFX_ERR(efx, "failed to initialise channel %d\n",
404 channel ? channel->channel : -1);
405 efx_fini_channels(efx);
406 return rc;
407} 390}
408 391
409/* This enables event queue processing and packet transmission. 392/* This enables event queue processing and packet transmission.
@@ -1121,24 +1104,16 @@ static void efx_remove_all(struct efx_nic *efx)
1121} 1104}
1122 1105
1123/* A convinience function to safely flush all the queues */ 1106/* A convinience function to safely flush all the queues */
1124int efx_flush_queues(struct efx_nic *efx) 1107void efx_flush_queues(struct efx_nic *efx)
1125{ 1108{
1126 int rc;
1127
1128 EFX_ASSERT_RESET_SERIALISED(efx); 1109 EFX_ASSERT_RESET_SERIALISED(efx);
1129 1110
1130 efx_stop_all(efx); 1111 efx_stop_all(efx);
1131 1112
1132 efx_fini_channels(efx); 1113 efx_fini_channels(efx);
1133 rc = efx_init_channels(efx); 1114 efx_init_channels(efx);
1134 if (rc) {
1135 efx_schedule_reset(efx, RESET_TYPE_DISABLE);
1136 return rc;
1137 }
1138 1115
1139 efx_start_all(efx); 1116 efx_start_all(efx);
1140
1141 return 0;
1142} 1117}
1143 1118
1144/************************************************************************** 1119/**************************************************************************
@@ -1311,7 +1286,6 @@ static int efx_net_open(struct net_device *net_dev)
1311static int efx_net_stop(struct net_device *net_dev) 1286static int efx_net_stop(struct net_device *net_dev)
1312{ 1287{
1313 struct efx_nic *efx = netdev_priv(net_dev); 1288 struct efx_nic *efx = netdev_priv(net_dev);
1314 int rc;
1315 1289
1316 EFX_LOG(efx, "closing %s on CPU %d\n", net_dev->name, 1290 EFX_LOG(efx, "closing %s on CPU %d\n", net_dev->name,
1317 raw_smp_processor_id()); 1291 raw_smp_processor_id());
@@ -1319,9 +1293,7 @@ static int efx_net_stop(struct net_device *net_dev)
1319 /* Stop the device and flush all the channels */ 1293 /* Stop the device and flush all the channels */
1320 efx_stop_all(efx); 1294 efx_stop_all(efx);
1321 efx_fini_channels(efx); 1295 efx_fini_channels(efx);
1322 rc = efx_init_channels(efx); 1296 efx_init_channels(efx);
1323 if (rc)
1324 efx_schedule_reset(efx, RESET_TYPE_DISABLE);
1325 1297
1326 return 0; 1298 return 0;
1327} 1299}
@@ -1404,16 +1376,10 @@ static int efx_change_mtu(struct net_device *net_dev, int new_mtu)
1404 1376
1405 efx_fini_channels(efx); 1377 efx_fini_channels(efx);
1406 net_dev->mtu = new_mtu; 1378 net_dev->mtu = new_mtu;
1407 rc = efx_init_channels(efx); 1379 efx_init_channels(efx);
1408 if (rc)
1409 goto fail;
1410 1380
1411 efx_start_all(efx); 1381 efx_start_all(efx);
1412 return rc; 1382 return rc;
1413
1414 fail:
1415 efx_schedule_reset(efx, RESET_TYPE_DISABLE);
1416 return rc;
1417} 1383}
1418 1384
1419static int efx_set_mac_address(struct net_device *net_dev, void *data) 1385static int efx_set_mac_address(struct net_device *net_dev, void *data)
@@ -1588,22 +1554,19 @@ static int efx_reset_up(struct efx_nic *efx, struct ethtool_cmd *ecmd)
1588{ 1554{
1589 int rc; 1555 int rc;
1590 1556
1591 rc = efx_init_channels(efx); 1557 efx_init_channels(efx);
1592 if (rc)
1593 goto fail1;
1594 1558
1595 /* Restore MAC and PHY settings. */ 1559 /* Restore MAC and PHY settings. */
1596 rc = falcon_xmac_set_settings(efx, ecmd); 1560 rc = falcon_xmac_set_settings(efx, ecmd);
1597 if (rc) { 1561 if (rc) {
1598 EFX_ERR(efx, "could not restore PHY settings\n"); 1562 EFX_ERR(efx, "could not restore PHY settings\n");
1599 goto fail2; 1563 goto fail;
1600 } 1564 }
1601 1565
1602 return 0; 1566 return 0;
1603 1567
1604 fail2: 1568 fail:
1605 efx_fini_channels(efx); 1569 efx_fini_channels(efx);
1606 fail1:
1607 return rc; 1570 return rc;
1608} 1571}
1609 1572
@@ -2023,19 +1986,16 @@ static int efx_pci_probe_main(struct efx_nic *efx)
2023 goto fail5; 1986 goto fail5;
2024 } 1987 }
2025 1988
2026 rc = efx_init_channels(efx); 1989 efx_init_channels(efx);
2027 if (rc)
2028 goto fail6;
2029 1990
2030 rc = falcon_init_interrupt(efx); 1991 rc = falcon_init_interrupt(efx);
2031 if (rc) 1992 if (rc)
2032 goto fail7; 1993 goto fail6;
2033 1994
2034 return 0; 1995 return 0;
2035 1996
2036 fail7:
2037 efx_fini_channels(efx);
2038 fail6: 1997 fail6:
1998 efx_fini_channels(efx);
2039 efx_fini_port(efx); 1999 efx_fini_port(efx);
2040 fail5: 2000 fail5:
2041 fail4: 2001 fail4:
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h
index 29a1c583058..9a8c283fa88 100644
--- a/drivers/net/sfc/efx.h
+++ b/drivers/net/sfc/efx.h
@@ -33,7 +33,7 @@ extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay);
33 33
34/* Channels */ 34/* Channels */
35extern void efx_process_channel_now(struct efx_channel *channel); 35extern void efx_process_channel_now(struct efx_channel *channel);
36extern int efx_flush_queues(struct efx_nic *efx); 36extern void efx_flush_queues(struct efx_nic *efx);
37 37
38/* Ports */ 38/* Ports */
39extern void efx_reconfigure_port(struct efx_nic *efx); 39extern void efx_reconfigure_port(struct efx_nic *efx);
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index 906d18a6526..79894160a9a 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -503,10 +503,10 @@ static void efx_ethtool_self_test(struct net_device *net_dev,
503 if (offline) { 503 if (offline) {
504 /* Stop the kernel from sending packets during the test. */ 504 /* Stop the kernel from sending packets during the test. */
505 efx_stop_queue(efx); 505 efx_stop_queue(efx);
506 rc = efx_flush_queues(efx); 506 efx_flush_queues(efx);
507 if (!rc) 507
508 rc = efx_offline_test(efx, &efx_tests, 508 rc = efx_offline_test(efx, &efx_tests,
509 efx->loopback_modes); 509 efx->loopback_modes);
510 efx_wake_queue(efx); 510 efx_wake_queue(efx);
511 } 511 }
512 512
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index 96cb5d031ed..e66d6cf03ad 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -242,7 +242,7 @@ static struct i2c_algo_bit_data falcon_i2c_bit_operations = {
242 * falcon_alloc_special_buffer()) in Falcon's buffer table, allowing 242 * falcon_alloc_special_buffer()) in Falcon's buffer table, allowing
243 * it to be used for event queues, descriptor rings etc. 243 * it to be used for event queues, descriptor rings etc.
244 */ 244 */
245static int 245static void
246falcon_init_special_buffer(struct efx_nic *efx, 246falcon_init_special_buffer(struct efx_nic *efx,
247 struct efx_special_buffer *buffer) 247 struct efx_special_buffer *buffer)
248{ 248{
@@ -266,8 +266,6 @@ falcon_init_special_buffer(struct efx_nic *efx,
266 BUF_OWNER_ID_FBUF, 0); 266 BUF_OWNER_ID_FBUF, 0);
267 falcon_write_sram(efx, &buf_desc, index); 267 falcon_write_sram(efx, &buf_desc, index);
268 } 268 }
269
270 return 0;
271} 269}
272 270
273/* Unmaps a buffer from Falcon and clears the buffer table entries */ 271/* Unmaps a buffer from Falcon and clears the buffer table entries */
@@ -449,16 +447,13 @@ int falcon_probe_tx(struct efx_tx_queue *tx_queue)
449 sizeof(efx_qword_t)); 447 sizeof(efx_qword_t));
450} 448}
451 449
452int falcon_init_tx(struct efx_tx_queue *tx_queue) 450void falcon_init_tx(struct efx_tx_queue *tx_queue)
453{ 451{
454 efx_oword_t tx_desc_ptr; 452 efx_oword_t tx_desc_ptr;
455 struct efx_nic *efx = tx_queue->efx; 453 struct efx_nic *efx = tx_queue->efx;
456 int rc;
457 454
458 /* Pin TX descriptor ring */ 455 /* Pin TX descriptor ring */
459 rc = falcon_init_special_buffer(efx, &tx_queue->txd); 456 falcon_init_special_buffer(efx, &tx_queue->txd);
460 if (rc)
461 return rc;
462 457
463 /* Push TX descriptor ring to card */ 458 /* Push TX descriptor ring to card */
464 EFX_POPULATE_OWORD_10(tx_desc_ptr, 459 EFX_POPULATE_OWORD_10(tx_desc_ptr,
@@ -495,8 +490,6 @@ int falcon_init_tx(struct efx_tx_queue *tx_queue)
495 set_bit_le(tx_queue->queue, (void *)&reg); 490 set_bit_le(tx_queue->queue, (void *)&reg);
496 falcon_write(efx, &reg, TX_CHKSM_CFG_REG_KER_A1); 491 falcon_write(efx, &reg, TX_CHKSM_CFG_REG_KER_A1);
497 } 492 }
498
499 return 0;
500} 493}
501 494
502static int falcon_flush_tx_queue(struct efx_tx_queue *tx_queue) 495static int falcon_flush_tx_queue(struct efx_tx_queue *tx_queue)
@@ -639,11 +632,10 @@ int falcon_probe_rx(struct efx_rx_queue *rx_queue)
639 sizeof(efx_qword_t)); 632 sizeof(efx_qword_t));
640} 633}
641 634
642int falcon_init_rx(struct efx_rx_queue *rx_queue) 635void falcon_init_rx(struct efx_rx_queue *rx_queue)
643{ 636{
644 efx_oword_t rx_desc_ptr; 637 efx_oword_t rx_desc_ptr;
645 struct efx_nic *efx = rx_queue->efx; 638 struct efx_nic *efx = rx_queue->efx;
646 int rc;
647 bool is_b0 = falcon_rev(efx) >= FALCON_REV_B0; 639 bool is_b0 = falcon_rev(efx) >= FALCON_REV_B0;
648 bool iscsi_digest_en = is_b0; 640 bool iscsi_digest_en = is_b0;
649 641
@@ -652,9 +644,7 @@ int falcon_init_rx(struct efx_rx_queue *rx_queue)
652 rx_queue->rxd.index + rx_queue->rxd.entries - 1); 644 rx_queue->rxd.index + rx_queue->rxd.entries - 1);
653 645
654 /* Pin RX descriptor ring */ 646 /* Pin RX descriptor ring */
655 rc = falcon_init_special_buffer(efx, &rx_queue->rxd); 647 falcon_init_special_buffer(efx, &rx_queue->rxd);
656 if (rc)
657 return rc;
658 648
659 /* Push RX descriptor ring to card */ 649 /* Push RX descriptor ring to card */
660 EFX_POPULATE_OWORD_10(rx_desc_ptr, 650 EFX_POPULATE_OWORD_10(rx_desc_ptr,
@@ -671,7 +661,6 @@ int falcon_init_rx(struct efx_rx_queue *rx_queue)
671 RX_DESCQ_EN, 1); 661 RX_DESCQ_EN, 1);
672 falcon_write_table(efx, &rx_desc_ptr, efx->type->rxd_ptr_tbl_base, 662 falcon_write_table(efx, &rx_desc_ptr, efx->type->rxd_ptr_tbl_base,
673 rx_queue->queue); 663 rx_queue->queue);
674 return 0;
675} 664}
676 665
677static int falcon_flush_rx_queue(struct efx_rx_queue *rx_queue) 666static int falcon_flush_rx_queue(struct efx_rx_queue *rx_queue)
@@ -1205,20 +1194,17 @@ int falcon_probe_eventq(struct efx_channel *channel)
1205 return falcon_alloc_special_buffer(efx, &channel->eventq, evq_size); 1194 return falcon_alloc_special_buffer(efx, &channel->eventq, evq_size);
1206} 1195}
1207 1196
1208int falcon_init_eventq(struct efx_channel *channel) 1197void falcon_init_eventq(struct efx_channel *channel)
1209{ 1198{
1210 efx_oword_t evq_ptr; 1199 efx_oword_t evq_ptr;
1211 struct efx_nic *efx = channel->efx; 1200 struct efx_nic *efx = channel->efx;
1212 int rc;
1213 1201
1214 EFX_LOG(efx, "channel %d event queue in special buffers %d-%d\n", 1202 EFX_LOG(efx, "channel %d event queue in special buffers %d-%d\n",
1215 channel->channel, channel->eventq.index, 1203 channel->channel, channel->eventq.index,
1216 channel->eventq.index + channel->eventq.entries - 1); 1204 channel->eventq.index + channel->eventq.entries - 1);
1217 1205
1218 /* Pin event queue buffer */ 1206 /* Pin event queue buffer */
1219 rc = falcon_init_special_buffer(efx, &channel->eventq); 1207 falcon_init_special_buffer(efx, &channel->eventq);
1220 if (rc)
1221 return rc;
1222 1208
1223 /* Fill event queue with all ones (i.e. empty events) */ 1209 /* Fill event queue with all ones (i.e. empty events) */
1224 memset(channel->eventq.addr, 0xff, channel->eventq.len); 1210 memset(channel->eventq.addr, 0xff, channel->eventq.len);
@@ -1232,8 +1218,6 @@ int falcon_init_eventq(struct efx_channel *channel)
1232 channel->channel); 1218 channel->channel);
1233 1219
1234 falcon_set_int_moderation(channel); 1220 falcon_set_int_moderation(channel);
1235
1236 return 0;
1237} 1221}
1238 1222
1239void falcon_fini_eventq(struct efx_channel *channel) 1223void falcon_fini_eventq(struct efx_channel *channel)
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h
index 4cf05d0b5cf..41b388b6599 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 */
42extern int falcon_probe_tx(struct efx_tx_queue *tx_queue); 42extern int falcon_probe_tx(struct efx_tx_queue *tx_queue);
43extern int falcon_init_tx(struct efx_tx_queue *tx_queue); 43extern void falcon_init_tx(struct efx_tx_queue *tx_queue);
44extern void falcon_fini_tx(struct efx_tx_queue *tx_queue); 44extern void falcon_fini_tx(struct efx_tx_queue *tx_queue);
45extern void falcon_remove_tx(struct efx_tx_queue *tx_queue); 45extern void falcon_remove_tx(struct efx_tx_queue *tx_queue);
46extern void falcon_push_buffers(struct efx_tx_queue *tx_queue); 46extern void falcon_push_buffers(struct efx_tx_queue *tx_queue);
47 47
48/* RX data path */ 48/* RX data path */
49extern int falcon_probe_rx(struct efx_rx_queue *rx_queue); 49extern int falcon_probe_rx(struct efx_rx_queue *rx_queue);
50extern int falcon_init_rx(struct efx_rx_queue *rx_queue); 50extern void falcon_init_rx(struct efx_rx_queue *rx_queue);
51extern void falcon_fini_rx(struct efx_rx_queue *rx_queue); 51extern void falcon_fini_rx(struct efx_rx_queue *rx_queue);
52extern void falcon_remove_rx(struct efx_rx_queue *rx_queue); 52extern void falcon_remove_rx(struct efx_rx_queue *rx_queue);
53extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue); 53extern void falcon_notify_rx_desc(struct efx_rx_queue *rx_queue);
54 54
55/* Event data path */ 55/* Event data path */
56extern int falcon_probe_eventq(struct efx_channel *channel); 56extern int falcon_probe_eventq(struct efx_channel *channel);
57extern int falcon_init_eventq(struct efx_channel *channel); 57extern void falcon_init_eventq(struct efx_channel *channel);
58extern void falcon_fini_eventq(struct efx_channel *channel); 58extern void falcon_fini_eventq(struct efx_channel *channel);
59extern void falcon_remove_eventq(struct efx_channel *channel); 59extern void falcon_remove_eventq(struct efx_channel *channel);
60extern int falcon_process_eventq(struct efx_channel *channel, int rx_quota); 60extern int falcon_process_eventq(struct efx_channel *channel, int rx_quota);
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c
index 7d2dc20d0ca..0f805da4ce5 100644
--- a/drivers/net/sfc/rx.c
+++ b/drivers/net/sfc/rx.c
@@ -800,7 +800,7 @@ int efx_probe_rx_queue(struct efx_rx_queue *rx_queue)
800 return rc; 800 return rc;
801} 801}
802 802
803int efx_init_rx_queue(struct efx_rx_queue *rx_queue) 803void efx_init_rx_queue(struct efx_rx_queue *rx_queue)
804{ 804{
805 struct efx_nic *efx = rx_queue->efx; 805 struct efx_nic *efx = rx_queue->efx;
806 unsigned int max_fill, trigger, limit; 806 unsigned int max_fill, trigger, limit;
@@ -824,7 +824,7 @@ int efx_init_rx_queue(struct efx_rx_queue *rx_queue)
824 rx_queue->fast_fill_limit = limit; 824 rx_queue->fast_fill_limit = limit;
825 825
826 /* Set up RX descriptor ring */ 826 /* Set up RX descriptor ring */
827 return falcon_init_rx(rx_queue); 827 falcon_init_rx(rx_queue);
828} 828}
829 829
830void efx_fini_rx_queue(struct efx_rx_queue *rx_queue) 830void efx_fini_rx_queue(struct efx_rx_queue *rx_queue)
diff --git a/drivers/net/sfc/rx.h b/drivers/net/sfc/rx.h
index 187b1109973..0e88a9ddc1c 100644
--- a/drivers/net/sfc/rx.h
+++ b/drivers/net/sfc/rx.h
@@ -14,7 +14,7 @@
14 14
15int efx_probe_rx_queue(struct efx_rx_queue *rx_queue); 15int efx_probe_rx_queue(struct efx_rx_queue *rx_queue);
16void efx_remove_rx_queue(struct efx_rx_queue *rx_queue); 16void efx_remove_rx_queue(struct efx_rx_queue *rx_queue);
17int efx_init_rx_queue(struct efx_rx_queue *rx_queue); 17void efx_init_rx_queue(struct efx_rx_queue *rx_queue);
18void efx_fini_rx_queue(struct efx_rx_queue *rx_queue); 18void efx_fini_rx_queue(struct efx_rx_queue *rx_queue);
19 19
20int efx_lro_init(struct net_lro_mgr *lro_mgr, struct efx_nic *efx); 20int efx_lro_init(struct net_lro_mgr *lro_mgr, struct efx_nic *efx);
diff --git a/drivers/net/sfc/tx.c b/drivers/net/sfc/tx.c
index a3a3eddd30b..cdee7c200d6 100644
--- a/drivers/net/sfc/tx.c
+++ b/drivers/net/sfc/tx.c
@@ -443,7 +443,7 @@ int efx_probe_tx_queue(struct efx_tx_queue *tx_queue)
443 return rc; 443 return rc;
444} 444}
445 445
446int efx_init_tx_queue(struct efx_tx_queue *tx_queue) 446void efx_init_tx_queue(struct efx_tx_queue *tx_queue)
447{ 447{
448 EFX_LOG(tx_queue->efx, "initialising TX queue %d\n", tx_queue->queue); 448 EFX_LOG(tx_queue->efx, "initialising TX queue %d\n", tx_queue->queue);
449 449
@@ -454,7 +454,7 @@ int efx_init_tx_queue(struct efx_tx_queue *tx_queue)
454 BUG_ON(tx_queue->stopped); 454 BUG_ON(tx_queue->stopped);
455 455
456 /* Set up TX descriptor ring */ 456 /* Set up TX descriptor ring */
457 return falcon_init_tx(tx_queue); 457 falcon_init_tx(tx_queue);
458} 458}
459 459
460void efx_release_tx_buffers(struct efx_tx_queue *tx_queue) 460void efx_release_tx_buffers(struct efx_tx_queue *tx_queue)
diff --git a/drivers/net/sfc/tx.h b/drivers/net/sfc/tx.h
index 1526a73b4b5..5e1cc234e42 100644
--- a/drivers/net/sfc/tx.h
+++ b/drivers/net/sfc/tx.h
@@ -15,7 +15,7 @@
15 15
16int efx_probe_tx_queue(struct efx_tx_queue *tx_queue); 16int efx_probe_tx_queue(struct efx_tx_queue *tx_queue);
17void efx_remove_tx_queue(struct efx_tx_queue *tx_queue); 17void efx_remove_tx_queue(struct efx_tx_queue *tx_queue);
18int efx_init_tx_queue(struct efx_tx_queue *tx_queue); 18void efx_init_tx_queue(struct efx_tx_queue *tx_queue);
19void efx_fini_tx_queue(struct efx_tx_queue *tx_queue); 19void efx_fini_tx_queue(struct efx_tx_queue *tx_queue);
20 20
21int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev); 21int efx_hard_start_xmit(struct sk_buff *skb, struct net_device *net_dev);