Skip to content

Commit 25a92b1

Browse files
committed
batman-adv: Replace obsolete strict_strto<foo> with kstrto<foo>
strict_strto<foo> is obsolete since v3.1-rc8-8466-g14acc55 and should be replaced with kstrto<foo>. Signed-off-by: Sven Eckelmann <sven@narfation.org>
1 parent 8794497 commit 25a92b1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎net/batman-adv/bat_sysfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static int store_uint_attr(const char *buff, size_t count,
174174
unsigned long uint_val;
175175
int ret;
176176

177-
ret = strict_strtoul(buff, 10, &uint_val);
177+
ret = kstrtoul(buff, 10, &uint_val);
178178
if (ret) {
179179
bat_info(net_dev,
180180
"%s: Invalid parameter received: %s\n",
@@ -239,7 +239,7 @@ static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr,
239239
unsigned long val;
240240
int ret, vis_mode_tmp = -1;
241241

242-
ret = strict_strtoul(buff, 10, &val);
242+
ret = kstrtoul(buff, 10, &val);
243243

244244
if (((count == 2) && (!ret) && (val == VIS_TYPE_CLIENT_UPDATE)) ||
245245
(strncmp(buff, "client", 6) == 0) ||

‎net/batman-adv/gateway_common.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static bool parse_gw_bandwidth(struct net_device *net_dev, char *buff,
9797
*tmp_ptr = '\0';
9898
}
9999

100-
ret = strict_strtol(buff, 10, &ldown);
100+
ret = kstrtol(buff, 10, &ldown);
101101
if (ret) {
102102
bat_err(net_dev,
103103
"Download speed of gateway mode invalid: %s\n",
@@ -122,7 +122,7 @@ static bool parse_gw_bandwidth(struct net_device *net_dev, char *buff,
122122
*tmp_ptr = '\0';
123123
}
124124

125-
ret = strict_strtol(slash_ptr + 1, 10, &lup);
125+
ret = kstrtol(slash_ptr + 1, 10, &lup);
126126
if (ret) {
127127
bat_err(net_dev,
128128
"Upload speed of gateway mode invalid: "

0 commit comments

Comments
 (0)