aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_configfs.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-19 03:22:19 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-08-12 23:31:44 -0400
commit57103d7fe1833857cf542a482c1eb8da0bf86e5d (patch)
tree75a7439ace0d34b69d2fb1f84c43f5454f673ac8 /drivers/target/iscsi/iscsi_target_configfs.c
parentd4e4ab86bcba5a72779c43dc1459f71fea3d89c8 (diff)
target: replace strict_strto*() with kstrto*()
The usage of strict_strtoul() and strict_strtoull() is not preferred, because strict_strtoul() and strict_strtoull() are obsolete. Thus, kstrtoul() and kstrtoull() should be used. v2: Fix incorrect return in ft_add_tpg (Fengguang) Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_configfs.c')
-rw-r--r--drivers/target/iscsi/iscsi_target_configfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c
index bbfd28893164..ddfa32c3f564 100644
--- a/drivers/target/iscsi/iscsi_target_configfs.c
+++ b/drivers/target/iscsi/iscsi_target_configfs.c
@@ -265,9 +265,9 @@ static struct se_tpg_np *lio_target_call_addnptotpg(
265 *port_str = '\0'; /* Terminate string for IP */ 265 *port_str = '\0'; /* Terminate string for IP */
266 port_str++; /* Skip over ":" */ 266 port_str++; /* Skip over ":" */
267 267
268 ret = strict_strtoul(port_str, 0, &port); 268 ret = kstrtoul(port_str, 0, &port);
269 if (ret < 0) { 269 if (ret < 0) {
270 pr_err("strict_strtoul() failed for port_str: %d\n", ret); 270 pr_err("kstrtoul() failed for port_str: %d\n", ret);
271 return ERR_PTR(ret); 271 return ERR_PTR(ret);
272 } 272 }
273 sock_in6 = (struct sockaddr_in6 *)&sockaddr; 273 sock_in6 = (struct sockaddr_in6 *)&sockaddr;
@@ -290,9 +290,9 @@ static struct se_tpg_np *lio_target_call_addnptotpg(
290 *port_str = '\0'; /* Terminate string for IP */ 290 *port_str = '\0'; /* Terminate string for IP */
291 port_str++; /* Skip over ":" */ 291 port_str++; /* Skip over ":" */
292 292
293 ret = strict_strtoul(port_str, 0, &port); 293 ret = kstrtoul(port_str, 0, &port);
294 if (ret < 0) { 294 if (ret < 0) {
295 pr_err("strict_strtoul() failed for port_str: %d\n", ret); 295 pr_err("kstrtoul() failed for port_str: %d\n", ret);
296 return ERR_PTR(ret); 296 return ERR_PTR(ret);
297 } 297 }
298 sock_in = (struct sockaddr_in *)&sockaddr; 298 sock_in = (struct sockaddr_in *)&sockaddr;