diff options
-rw-r--r-- | drivers/net/benet/be_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 6487eb4bad10..5aadd71d4613 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -743,7 +743,7 @@ static void skb_fill_rx_data(struct be_adapter *adapter, | |||
743 | 743 | ||
744 | if (pktsize <= rx_frag_size) { | 744 | if (pktsize <= rx_frag_size) { |
745 | BUG_ON(num_rcvd != 1); | 745 | BUG_ON(num_rcvd != 1); |
746 | return; | 746 | goto done; |
747 | } | 747 | } |
748 | 748 | ||
749 | /* More frags present for this completion */ | 749 | /* More frags present for this completion */ |
@@ -765,6 +765,7 @@ static void skb_fill_rx_data(struct be_adapter *adapter, | |||
765 | memset(page_info, 0, sizeof(*page_info)); | 765 | memset(page_info, 0, sizeof(*page_info)); |
766 | } | 766 | } |
767 | 767 | ||
768 | done: | ||
768 | be_rx_stats_update(adapter, pktsize, num_rcvd); | 769 | be_rx_stats_update(adapter, pktsize, num_rcvd); |
769 | return; | 770 | return; |
770 | } | 771 | } |