net: remove obsolete simple_strto<foo>
This patch replace the obsolete simple_strto<foo> with kstrto<foo> Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
008d427807
commit
4b5511ebc7
@@ -674,7 +674,8 @@ int netpoll_parse_options(struct netpoll *np, char *opt)
|
||||
if ((delim = strchr(cur, '@')) == NULL)
|
||||
goto parse_failed;
|
||||
*delim = 0;
|
||||
np->local_port = simple_strtol(cur, NULL, 10);
|
||||
if (kstrtou16(cur, 10, &np->local_port))
|
||||
goto parse_failed;
|
||||
cur = delim;
|
||||
}
|
||||
cur++;
|
||||
@@ -706,6 +707,8 @@ int netpoll_parse_options(struct netpoll *np, char *opt)
|
||||
if (*cur == ' ' || *cur == '\t')
|
||||
np_info(np, "warning: whitespace is not allowed\n");
|
||||
np->remote_port = simple_strtol(cur, NULL, 10);
|
||||
if (kstrtou16(cur, 10, &np->remote_port))
|
||||
goto parse_failed;
|
||||
cur = delim;
|
||||
}
|
||||
cur++;
|
||||
|
Reference in New Issue
Block a user