Re: [PATCH 1/3] Add a usr_strtobool function matching semantics of existing in kernel equivalents

From: Rusty Russell
Date: Mon Apr 18 2011 - 21:40:00 EST


On Thu, 24 Mar 2011 13:23:43 +0000, Jonathan Cameron <jic23@xxxxxxxxx> wrote:
> This is a renamed and relocated fixed version of previous kstrtobool RFC

Please just call it strtobool, usr_ implies it's a user pointer.

And there's no need to introduce a new var in debugfs, just do:

if (strtobool(buf, &bv) == 0)
*val = bv;

And yes, I'll take it for the param stuff.

Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/