]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
EDAC: Replace strict_strtol() with kstrtol()
authorJingoo Han <jg1.han@samsung.com>
Fri, 19 Jul 2013 07:07:21 +0000 (16:07 +0900)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Jul 2013 07:30:03 +0000 (09:30 +0200)
The usage of strict_strtol() is not preferred, because strict_strtol()
is obsolete. Thus, kstrtol() should be used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc_sysfs.c

index ef15a7e613bc6b1d1feec75733a86e20cb23efa7..e6789e919a5650f61273235a222c3a3fa91fa38d 100644 (file)
@@ -58,8 +58,10 @@ static int edac_set_poll_msec(const char *val, struct kernel_param *kp)
        if (!val)
                return -EINVAL;
 
-       ret = strict_strtol(val, 0, &l);
-       if (ret == -EINVAL || ((int)l != l))
+       ret = kstrtol(val, 0, &l);
+       if (ret)
+               return ret;
+       if ((int)l != l)
                return -EINVAL;
        *((int *)kp->arg) = l;