Skip to content

Commit

Permalink
net: ethernet: Remove double assignment
Browse files Browse the repository at this point in the history
Variable type would be assigned at the block end.

Signed-off-by: Andrei Emeltchenko <[email protected]>
  • Loading branch information
finikorg authored and carlescufi committed Jun 22, 2022
1 parent 77c6941 commit c27b72b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions subsys/net/l2/ethernet/ethernet_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ static int ethernet_set_config(uint32_t mgmt_request,
config.auto_negotiation = params->auto_negotiation;
type = ETHERNET_CONFIG_TYPE_AUTO_NEG;
} else if (mgmt_request == NET_REQUEST_ETHERNET_SET_LINK) {
type = ETHERNET_CONFIG_TYPE_LINK;

if (params->l.link_10bt) {
if (!is_hw_caps_supported(dev,
ETHERNET_LINK_10BASE_T)) {
Expand Down

0 comments on commit c27b72b

Please sign in to comment.