File tree Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
3332void ef100_tx_init (struct efx_tx_queue * tx_queue )
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ void efx_stop_eventq(struct efx_channel *channel);
3131void efx_fini_eventq (struct efx_channel * channel );
3232void 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 );
3634int efx_realloc_channels (struct efx_nic * efx , u32 rxq_entries , u32 txq_entries );
3735void efx_get_channel_name (struct efx_channel * channel , char * buf , size_t len );
3836void efx_set_channel_names (struct efx_nic * efx );
You can’t perform that action at this time.
0 commit comments