Skip to content

Commit 3156231

Browse files
Jingoo HanDavid Woodhouse
authored andcommitted
mtd: mtdswap: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 8e7fd23 commit 3156231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/mtdswap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
14251425
return;
14261426

14271427
while ((this_opt = strsep(&parts, ",")) != NULL) {
1428-
if (strict_strtoul(this_opt, 0, &part) < 0)
1428+
if (kstrtoul(this_opt, 0, &part) < 0)
14291429
return;
14301430

14311431
if (mtd->index == part)

0 commit comments

Comments
 (0)