X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmtdswap.c;h=8b33b26eb12b25a1dccc1f4b42a7f8992b2229de;hb=61317c51e2aeb63a8040e1758c65c5b09e374ac2;hp=c92f0f6bc130e12380a53eab2a53239be33916f1;hpb=fb9d78aca709b7a6389c79d6211fb384c69bb79f;p=karo-tx-linux.git diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index c92f0f6bc130..8b33b26eb12b 100644 --- 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 (kstrtoul(this_opt, 0, &part) < 0) return; if (mtd->index == part)