mtd: Remove unnecessary comparisons with MAX_MTD_DEVICES
MAX_MTD_DEVICES is about to be removed. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
committed by
David Woodhouse
parent
e99e90aef1
commit
24c1549677
@@ -429,11 +429,6 @@ static int __init mtdoops_init(void)
|
||||
mtd_index = simple_strtoul(mtddev, &endp, 0);
|
||||
if (*endp == '\0')
|
||||
cxt->mtd_index = mtd_index;
|
||||
if (cxt->mtd_index > MAX_MTD_DEVICES) {
|
||||
printk(KERN_ERR "mtdoops: invalid mtd device number (%u) given\n",
|
||||
mtd_index);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
cxt->oops_buf = vmalloc(record_size);
|
||||
if (!cxt->oops_buf) {
|
||||
|
Reference in New Issue
Block a user