diff options
author | Abhijit Pawar <abhi.c.pawar@gmail.com> | 2012-12-10 00:12:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-10 20:09:00 +0100 |
commit | 4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395 (patch) | |
tree | e6882f930d0952aa08162fba55b166a87cebf410 /net/core/netpoll.c | |
parent | virtio_net: fix a typo in virtnet_alloc_queues() (diff) | |
download | linux-4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395.tar.xz linux-4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395.zip |
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>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 77a0388fc3be..12c129f726f9 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -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++; |