Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akihikodaki authored and jasowang committed May 23, 2023
1 parent d524135 commit a09cc21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/net/igb_core.c
Expand Up @@ -1297,7 +1297,7 @@ igb_build_rx_metadata(IGBCore *core,
break;

default:
goto func_exit;
break;
}
} else {
trace_e1000e_rx_metadata_l4_cso_disabled();
Expand Down

0 comments on commit a09cc21

Please sign in to comment.