On Thu, Apr 21, 2022 at 02:00:31AM +0800, Hailong Tu wrote: > +static int enabled_show(char *buffer, const struct kernel_param *kp) > +{ > + return sprintf(buffer, "%c\n", enabled ? 'Y' : 'N'); > +} Why duplicate param_get_bool()?
On Thu, Apr 21, 2022 at 02:00:31AM +0800, Hailong Tu wrote: > +static int enabled_show(char *buffer, const struct kernel_param *kp) > +{ > + return sprintf(buffer, "%c\n", enabled ? 'Y' : 'N'); > +} Why duplicate param_get_bool()?