drivers: gnss: remove dangerous loop

When ubx_m10_ubx_cfg_rst is returning something negative there is a loop
in the code which in turn can easily turn into an endless loop if the
function is never returning something positive or zero.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
This commit is contained in:
Andreas Klinger 2024-07-13 17:32:05 +02:00 committed by Anas Nashif
parent a1eb11bb59
commit dda519d48c

View file

@ -951,9 +951,6 @@ static int ubx_m10_configure(const struct device *dev)
reset:
ret = ubx_m10_ubx_cfg_rst(dev, UBX_CFG_RST_RESET_MODE_CONTROLLED_GNSS_START);
if (ret < 0) {
goto reset;
}
return ret;
}