Skip to content

Commit cac7663

Browse files
committed
Merge branch 'sfc-misc-cleanups'
Edward Cree says: ==================== sfc: misc cleanups Clean up a few nits I noticed while working on TXQ stuff. ==================== Reviewed-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2 parents 12913f7 + 4da24fa commit cac7663

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,10 +1200,6 @@ static int ef100_probe_main(struct efx_nic *efx)
12001200
if (rc)
12011201
goto fail;
12021202

1203-
rc = efx_init_channels(efx);
1204-
if (rc)
1205-
goto fail;
1206-
12071203
down_write(&efx->filter_sem);
12081204
rc = ef100_filter_table_probe(efx);
12091205
up_write(&efx->filter_sem);

drivers/net/ethernet/sfc/ef100_tx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ int ef100_tx_probe(struct efx_tx_queue *tx_queue)
2727
(tx_queue->ptr_mask + 2) *
2828
sizeof(efx_oword_t),
2929
GFP_KERNEL);
30-
return 0;
3130
}
3231

3332
void ef100_tx_init(struct efx_tx_queue *tx_queue)

drivers/net/ethernet/sfc/efx_channels.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,7 @@ static void efx_filter_rfs_expire(struct work_struct *data)
505505
#endif
506506

507507
/* Allocate and initialise a channel structure. */
508-
struct efx_channel *
509-
efx_alloc_channel(struct efx_nic *efx, int i, struct efx_channel *old_channel)
508+
static struct efx_channel *efx_alloc_channel(struct efx_nic *efx, int i)
510509
{
511510
struct efx_rx_queue *rx_queue;
512511
struct efx_tx_queue *tx_queue;
@@ -545,7 +544,7 @@ int efx_init_channels(struct efx_nic *efx)
545544
unsigned int i;
546545

547546
for (i = 0; i < EFX_MAX_CHANNELS; i++) {
548-
efx->channel[i] = efx_alloc_channel(efx, i, NULL);
547+
efx->channel[i] = efx_alloc_channel(efx, i);
549548
if (!efx->channel[i])
550549
return -ENOMEM;
551550
efx->msi_context[i].efx = efx;

drivers/net/ethernet/sfc/efx_channels.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ void efx_stop_eventq(struct efx_channel *channel);
3131
void efx_fini_eventq(struct efx_channel *channel);
3232
void efx_remove_eventq(struct efx_channel *channel);
3333

34-
struct efx_channel *
35-
efx_alloc_channel(struct efx_nic *efx, int i, struct efx_channel *old_channel);
3634
int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries);
3735
void efx_get_channel_name(struct efx_channel *channel, char *buf, size_t len);
3836
void efx_set_channel_names(struct efx_nic *efx);

0 commit comments

Comments
 (0)