]> Git Repo - linux.git/commitdiff
ntp: Convert simple_strtol to kstrtol
authorFabian Frederick <[email protected]>
Fri, 9 May 2014 18:32:25 +0000 (20:32 +0200)
committerJohn Stultz <[email protected]>
Mon, 12 May 2014 17:09:25 +0000 (10:09 -0700)
Replace obsolete function simple_strtol w/ kstrtol

Inspired-By: Andrew Morton <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
[jstultz: Tweak commit message]
Signed-off-by: John Stultz <[email protected]>
kernel/time/ntp.c

index 419a52cecd20c4fa2cac2fab666b1be48a4e9f4b..82b7c9edba7eb396dda42f9e30592c4414ef1f00 100644 (file)
@@ -923,7 +923,10 @@ void __hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts)
 
 static int __init ntp_tick_adj_setup(char *str)
 {
-       ntp_tick_adj = simple_strtol(str, NULL, 0);
+       int rc = kstrtol(str, 0, (long *)&ntp_tick_adj);
+
+       if (rc)
+               return rc;
        ntp_tick_adj <<= NTP_SCALE_SHIFT;
 
        return 1;
This page took 0.068488 seconds and 4 git commands to generate.