Commit 54d7417b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

MODULE: delete local static copy of param_set_byte as we now have a real version of it.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent a28f7306
......@@ -725,19 +725,6 @@ static inline int sysfs_unload_setup(struct module *mod)
#endif /* CONFIG_MODULE_UNLOAD */
#ifdef CONFIG_OBSOLETE_MODPARM
static int param_set_byte(const char *val, struct kernel_param *kp)
{
char *endp;
long l;
if (!val) return -EINVAL;
l = simple_strtol(val, &endp, 0);
if (endp == val || *endp || ((char)l != l))
return -EINVAL;
*((char *)kp->arg) = l;
return 0;
}
/* Bounds checking done below */
static int obsparm_copy_string(const char *val, struct kernel_param *kp)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment