mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
score: Fix pps_fetch()
Return early only if there was a timeout, otherwise return the PPS info. Update #2349.
This commit is contained in:
@@ -1980,7 +1980,8 @@ pps_fetch(struct pps_fetch_args *fapi, struct pps_state *pps)
|
||||
#else /* __rtems__ */
|
||||
_Assert(pps->wait != NULL);
|
||||
err = (*pps->wait)(pps, fapi->timeout);
|
||||
return (err);
|
||||
if (err != 0)
|
||||
return (err);
|
||||
#endif /* __rtems__ */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user