projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c134db8
)
net: wan: Replace simple_strtol by simple_strtoul
author
Zheng Yongjun
<zhengyongjun3@huawei.com>
Tue, 29 Dec 2020 13:48:56 +0000
(21:48 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Jan 2021 23:43:41 +0000
(15:43 -0800)
The simple_strtol() function is deprecated, use simple_strtoul() instead.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/sbni.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/sbni.c
b/drivers/net/wan/sbni.c
index
2fde439
..
3092a09
100644
(file)
--- a/
drivers/net/wan/sbni.c
+++ b/
drivers/net/wan/sbni.c
@@
-1535,7
+1535,7
@@
sbni_setup( char *p )
goto bad_param;
for( n = 0, parm = 0; *p && n < 8; ) {
- (*dest[ parm ])[ n ] = simple_strtol( p, &p, 0 );
+ (*dest[ parm ])[ n ] = simple_strto
u
l( p, &p, 0 );
if( !*p || *p == ')' )
return 1;
if( *p == ';' ) {