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)
1200
1200
if (rc )
1201
1201
goto fail ;
1202
1202
1203
- rc = efx_init_channels (efx );
1204
- if (rc )
1205
- goto fail ;
1206
-
1207
1203
down_write (& efx -> filter_sem );
1208
1204
rc = ef100_filter_table_probe (efx );
1209
1205
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)
27
27
(tx_queue -> ptr_mask + 2 ) *
28
28
sizeof (efx_oword_t ),
29
29
GFP_KERNEL );
30
- return 0 ;
31
30
}
32
31
33
32
void 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)
505
505
#endif
506
506
507
507
/* 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 )
510
509
{
511
510
struct efx_rx_queue * rx_queue ;
512
511
struct efx_tx_queue * tx_queue ;
@@ -545,7 +544,7 @@ int efx_init_channels(struct efx_nic *efx)
545
544
unsigned int i ;
546
545
547
546
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 );
549
548
if (!efx -> channel [i ])
550
549
return - ENOMEM ;
551
550
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);
31
31
void efx_fini_eventq (struct efx_channel * channel );
32
32
void efx_remove_eventq (struct efx_channel * channel );
33
33
34
- struct efx_channel *
35
- efx_alloc_channel (struct efx_nic * efx , int i , struct efx_channel * old_channel );
36
34
int efx_realloc_channels (struct efx_nic * efx , u32 rxq_entries , u32 txq_entries );
37
35
void efx_get_channel_name (struct efx_channel * channel , char * buf , size_t len );
38
36
void efx_set_channel_names (struct efx_nic * efx );
You can’t perform that action at this time.
0 commit comments