diff options
author | 2013-07-19 16:22:19 +0900 | |
---|---|---|
committer | 2013-08-12 20:31:44 -0700 | |
commit | 57103d7fe1833857cf542a482c1eb8da0bf86e5d (patch) | |
tree | 75a7439ace0d34b69d2fb1f84c43f5454f673ac8 /drivers/target/target_core_file.c | |
parent | Linux 3.11-rc5 (diff) | |
download | linux-57103d7fe1833857cf542a482c1eb8da0bf86e5d.tar.gz linux-57103d7fe1833857cf542a482c1eb8da0bf86e5d.tar.bz2 linux-57103d7fe1833857cf542a482c1eb8da0bf86e5d.zip |
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/target_core_file.c')
-rw-r--r-- | drivers/target/target_core_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index b11890d85120..bc3245dfcdf7 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c @@ -635,10 +635,10 @@ static ssize_t fd_set_configfs_dev_params(struct se_device *dev, ret = -ENOMEM; break; } - ret = strict_strtoull(arg_p, 0, &fd_dev->fd_dev_size); + ret = kstrtoull(arg_p, 0, &fd_dev->fd_dev_size); kfree(arg_p); if (ret < 0) { - pr_err("strict_strtoull() failed for" + pr_err("kstrtoull() failed for" " fd_dev_size=\n"); goto out; } |