net: wan: Replace simple_strtol by simple_strtoul
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 29 Dec 2020 13:48:56 +0000 (21:48 +0800)
committerDavid 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

index 2fde439543fb1acfe66f9f32ad886325d3a90029..3092a09d3eaadcff00ded06bb53ed09b139da3cb 100644 (file)
@@ -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_strtoul( p, &p, 0 );
                if( !*p  ||  *p == ')' )
                        return 1;
                if( *p == ';' ) {