[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/40] igb: Remove goto
From: |
Akihiko Odaki |
Subject: |
[PATCH 18/40] igb: Remove goto |
Date: |
Fri, 14 Apr 2023 20:37:15 +0900 |
The goto is a bit confusing as it changes the control flow only if L4
protocol is not recognized. It is also different from e1000e, and
noisy when comparing e1000e and igb.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
hw/net/igb_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c
index ccc5a626b4..cca71611fe 100644
--- a/hw/net/igb_core.c
+++ b/hw/net/igb_core.c
@@ -1297,7 +1297,7 @@ igb_build_rx_metadata(IGBCore *core,
break;
default:
- goto func_exit;
+ break;
}
} else {
trace_e1000e_rx_metadata_l4_cso_disabled();
--
2.40.0
- [PATCH 12/40] hw/net/net_tx_pkt: Remove net_rx_pkt_get_l4_info, (continued)
- [PATCH 12/40] hw/net/net_tx_pkt: Remove net_rx_pkt_get_l4_info, Akihiko Odaki, 2023/04/14
- [PATCH 13/40] net/eth: Rename eth_setup_vlan_headers_ex, Akihiko Odaki, 2023/04/14
- [PATCH 14/40] e1000x: Share more Rx filtering logic, Akihiko Odaki, 2023/04/14
- [PATCH 15/40] e1000x: Take CRC into consideration for size check, Akihiko Odaki, 2023/04/14
- [PATCH 16/40] e1000e: Always log status after building rx metadata, Akihiko Odaki, 2023/04/14
- [PATCH 17/40] igb: Always log status after building rx metadata, Akihiko Odaki, 2023/04/14
- [PATCH 18/40] igb: Remove goto,
Akihiko Odaki <=
- [PATCH 20/40] e1000e: Reset packet state after emptying Tx queue, Akihiko Odaki, 2023/04/14
- [PATCH 19/40] igb: Read DCMD.VLE of the first Tx descriptor, Akihiko Odaki, 2023/04/14
- [PATCH 22/40] igb: Add more definitions for Tx descriptor, Akihiko Odaki, 2023/04/14
- [PATCH 23/40] igb: Share common VF constants, Akihiko Odaki, 2023/04/14
- [PATCH 21/40] vmxnet3: Reset packet state after emptying Tx queue, Akihiko Odaki, 2023/04/14