diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-05-23 11:43:11 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-05-23 15:20:15 +0800 |
commit | a09cc21e80ebbb0fecc8eea33281290144234c9b (patch) | |
tree | 401e22843e1f7d3e9bc2373a5ac43d23d94c4e77 /hw/net | |
parent | d5241351bd4fdb40cafc87024c4f924267a7ba1c (diff) | |
download | qemu-a09cc21e80ebbb0fecc8eea33281290144234c9b.zip qemu-a09cc21e80ebbb0fecc8eea33281290144234c9b.tar.gz qemu-a09cc21e80ebbb0fecc8eea33281290144234c9b.tar.bz2 |
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 <akihiko.odaki@daynix.com>
Reviewed-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/igb_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 946b917..bae51cb 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(); |