score: Fix pps_fetch()

Return early only if there was a timeout, otherwise return the PPS info.

Update #2349.
This commit is contained in:
Sebastian Huber
2022-05-23 09:19:27 +02:00
parent f91f30f69a
commit 044e8b6b97

View File

@@ -1980,6 +1980,7 @@ pps_fetch(struct pps_fetch_args *fapi, struct pps_state *pps)
#else /* __rtems__ */
_Assert(pps->wait != NULL);
err = (*pps->wait)(pps, fapi->timeout);
if (err != 0)
return (err);
#endif /* __rtems__ */
}