Skip to content

Commit

Permalink
Replaced init check with assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jauge-technica committed Aug 4, 2023
1 parent 8a038b7 commit 6946aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux_daemon/mka_phy_driver_libnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ t_MKA_result MKA_PHY_UpdateSecY(t_MKA_bus bus, t_MKA_SECY_config const * config,
if (!my_libnl_status->init_done) {
MKA_LOG_DEBUG2("Libnl init for this bus not done. Doing it now..");

if (libnl_per_bus_init(bus) != MKA_OK) return MKA_NOT_OK;
MKA_ASSERT(MKA_OK == libnl_per_bus_init(bus), "Initialisation failed while configuring bus %i.", bus);

// Initialize aux_tx_sci to the value of an empty SCI
t_MKA_sci aux_tx_sci;
Expand Down

0 comments on commit 6946aaa

Please sign in to comment.