Skip to content

Commit

Permalink
sfc: Remove redundant gotos from __efx_rx_packet()
Browse files Browse the repository at this point in the history
This function no longer has any common cleanup code.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Nov 24, 2009
1 parent 9e0c8a5 commit d96d7dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/net/sfc/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ void __efx_rx_packet(struct efx_channel *channel,
if (unlikely(efx->loopback_selftest)) {
efx_loopback_rx_packet(efx, rx_buf->data, rx_buf->len);
efx_free_rx_buffer(efx, rx_buf);
goto done;
return;
}

if (rx_buf->skb) {
Expand All @@ -580,7 +580,7 @@ void __efx_rx_packet(struct efx_channel *channel,

if (likely(checksummed || rx_buf->page)) {
efx_rx_packet_lro(channel, rx_buf, checksummed);
goto done;
return;
}

/* We now own the SKB */
Expand All @@ -601,9 +601,6 @@ void __efx_rx_packet(struct efx_channel *channel,

/* Update allocation strategy method */
channel->rx_alloc_level += RX_ALLOC_FACTOR_SKB;

done:
;
}

void efx_rx_strategy(struct efx_channel *channel)
Expand Down

0 comments on commit d96d7dc

Please sign in to comment.