From: Akihiko Odaki Date: Tue, 23 May 2023 02:43:11 +0000 (+0900) Subject: igb: Remove goto X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a09cc21e80ebbb0fecc8eea33281290144234c9b;p=qemu.git igb: Remove goto 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 Reviewed-by: Sriram Yagnaraman Signed-off-by: Jason Wang --- diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 946b917f91..bae51cbb63 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();