netdev: remove unneeded goto/return code

All possible paths led to the same result so it was
simplified to remove two goto's and a return call.
This commit is contained in:
James Prestwood 2021-03-29 13:43:51 -07:00 committed by Denis Kenzior
parent a04d4423f8
commit 19ce2d86dd
1 changed files with 1 additions and 6 deletions

View File

@ -2234,12 +2234,7 @@ static void netdev_authenticate_event(struct l_genl_msg *msg,
return;
else if (ret > 0)
status_code = (uint16_t)ret;
goto auth_error;
} else
goto auth_error;
return;
}
auth_error:
netdev_connect_failed(netdev, NETDEV_RESULT_AUTHENTICATION_FAILED,