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:
parent
a1eb11bb59
commit
dda519d48c
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue