> +static int cpts_extts_enable(struct cpts *cpts, u32 index, int on) > +{ > + u32 v; > + > + if (index >= cpts->info.n_ext_ts) > + return -ENXIO; This check is already performed in ptp_chardev.c. Thanks, Richard
> +static int cpts_extts_enable(struct cpts *cpts, u32 index, int on) > +{ > + u32 v; > + > + if (index >= cpts->info.n_ext_ts) > + return -ENXIO; This check is already performed in ptp_chardev.c. Thanks, Richard