diff options
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 4e761e957de8..51bff88342af 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -1099,7 +1099,7 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) | |||
1099 | struct mtd_dev_param *p; | 1099 | struct mtd_dev_param *p; |
1100 | char buf[MTD_PARAM_LEN_MAX]; | 1100 | char buf[MTD_PARAM_LEN_MAX]; |
1101 | char *pbuf = &buf[0]; | 1101 | char *pbuf = &buf[0]; |
1102 | char *tokens[3] = {NULL, NULL, NULL}; | 1102 | char *tokens[2] = {NULL, NULL}; |
1103 | 1103 | ||
1104 | if (!val) | 1104 | if (!val) |
1105 | return -EINVAL; | 1105 | return -EINVAL; |
@@ -1129,7 +1129,7 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) | |||
1129 | if (buf[len - 1] == '\n') | 1129 | if (buf[len - 1] == '\n') |
1130 | buf[len - 1] = '\0'; | 1130 | buf[len - 1] = '\0'; |
1131 | 1131 | ||
1132 | for (i = 0; i < 3; i++) | 1132 | for (i = 0; i < 2; i++) |
1133 | tokens[i] = strsep(&pbuf, ","); | 1133 | tokens[i] = strsep(&pbuf, ","); |
1134 | 1134 | ||
1135 | if (pbuf) { | 1135 | if (pbuf) { |