Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
David Woodhouse
3156231f 8e7fd236

+1 -1
+1 -1
drivers/mtd/mtdswap.c
··· 1425 1425 return; 1426 1426 1427 1427 while ((this_opt = strsep(&parts, ",")) != NULL) { 1428 - if (strict_strtoul(this_opt, 0, &part) < 0) 1428 + if (kstrtoul(this_opt, 0, &part) < 0) 1429 1429 return; 1430 1430 1431 1431 if (mtd->index == part)