Commit d96d7dc9 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

sfc: Remove redundant gotos from __efx_rx_packet()

This function no longer has any common cleanup code.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e0c8a5b
...@@ -564,7 +564,7 @@ void __efx_rx_packet(struct efx_channel *channel, ...@@ -564,7 +564,7 @@ void __efx_rx_packet(struct efx_channel *channel,
if (unlikely(efx->loopback_selftest)) { if (unlikely(efx->loopback_selftest)) {
efx_loopback_rx_packet(efx, rx_buf->data, rx_buf->len); efx_loopback_rx_packet(efx, rx_buf->data, rx_buf->len);
efx_free_rx_buffer(efx, rx_buf); efx_free_rx_buffer(efx, rx_buf);
goto done; return;
} }
if (rx_buf->skb) { if (rx_buf->skb) {
...@@ -580,7 +580,7 @@ void __efx_rx_packet(struct efx_channel *channel, ...@@ -580,7 +580,7 @@ void __efx_rx_packet(struct efx_channel *channel,
if (likely(checksummed || rx_buf->page)) { if (likely(checksummed || rx_buf->page)) {
efx_rx_packet_lro(channel, rx_buf, checksummed); efx_rx_packet_lro(channel, rx_buf, checksummed);
goto done; return;
} }
/* We now own the SKB */ /* We now own the SKB */
...@@ -601,9 +601,6 @@ void __efx_rx_packet(struct efx_channel *channel, ...@@ -601,9 +601,6 @@ void __efx_rx_packet(struct efx_channel *channel,
/* Update allocation strategy method */ /* Update allocation strategy method */
channel->rx_alloc_level += RX_ALLOC_FACTOR_SKB; channel->rx_alloc_level += RX_ALLOC_FACTOR_SKB;
done:
;
} }
void efx_rx_strategy(struct efx_channel *channel) void efx_rx_strategy(struct efx_channel *channel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment