Re: [PATCH -next] pps: using ERR_PTR instead of NULL while pps_register_source fails

From: Rodolfo Giometti
Date: Mon Nov 26 2018 - 05:50:19 EST


On 26/11/2018 11:24, YueHaibing wrote:
pps_register_source() has keeps error codes in a local variable,
but it does not make use of the code. This patch let it return
the errcode in case of failure.

Suggested-by: Richard Cochran <richardcochran@xxxxxxxxx>
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Acked-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx>