Re: [Linuxptp-devel] [PATCH v2 4/7] pmc_agent: Simplify logic in update method.

2020-11-28 Thread Vladimir Oltean
On Fri, Nov 27, 2020 at 06:30:08PM -0800, Richard Cochran wrote: > If the pmc pointer is not set, then there is no need to read the time only > to later discard the result. This patch simplifies the flow by returning > early if there is no work to be done. > > Signed-off-by: Richard Cochran >

[Linuxptp-devel] [PATCH v2 4/7] pmc_agent: Simplify logic in update method.

2020-11-27 Thread Richard Cochran
If the pmc pointer is not set, then there is no need to read the time only to later discard the result. This patch simplifies the flow by returning early if there is no work to be done. Signed-off-by: Richard Cochran Reviewed-by: Jacob Keller --- pmc_agent.c | 6 -- 1 file changed, 4