diff options
Diffstat (limited to 'drivers/mtd/mtdoops.c')
-rw-r--r-- | drivers/mtd/mtdoops.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index 92e12df0917f..328313c3dccb 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -429,11 +429,6 @@ static int __init mtdoops_init(void) | |||
429 | mtd_index = simple_strtoul(mtddev, &endp, 0); | 429 | mtd_index = simple_strtoul(mtddev, &endp, 0); |
430 | if (*endp == '\0') | 430 | if (*endp == '\0') |
431 | cxt->mtd_index = mtd_index; | 431 | cxt->mtd_index = mtd_index; |
432 | if (cxt->mtd_index > MAX_MTD_DEVICES) { | ||
433 | printk(KERN_ERR "mtdoops: invalid mtd device number (%u) given\n", | ||
434 | mtd_index); | ||
435 | return -EINVAL; | ||
436 | } | ||
437 | 432 | ||
438 | cxt->oops_buf = vmalloc(record_size); | 433 | cxt->oops_buf = vmalloc(record_size); |
439 | if (!cxt->oops_buf) { | 434 | if (!cxt->oops_buf) { |