projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: mtdswap: replace strict_strtoul() with kstrtoul()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
mtdswap.c
diff --git
a/drivers/mtd/mtdswap.c
b/drivers/mtd/mtdswap.c
index c92f0f6bc130e12380a53eab2a53239be33916f1..8b33b26eb12b25a1dccc1f4b42a7f8992b2229de 100644
(file)
--- a/
drivers/mtd/mtdswap.c
+++ b/
drivers/mtd/mtdswap.c
@@
-1425,7
+1425,7
@@
static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
return;
while ((this_opt = strsep(&parts, ",")) != NULL) {
- if (
strict_
strtoul(this_opt, 0, &part) < 0)
+ if (
k
strtoul(this_opt, 0, &part) < 0)
return;
if (mtd->index == part)