summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdoops.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-01-29 20:58:23 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-25 11:39:09 +0000
commit24c15496771ea1f3902dee23f746042ba34dc2b8 (patch)
treeb9bfd802eff8e6d7405c8714a96a7661c3fa1008 /drivers/mtd/mtdoops.c
parente99e90aef17517d99be8e049b2f5cc563cd6862a (diff)
downloadop-kernel-dev-24c15496771ea1f3902dee23f746042ba34dc2b8.zip
op-kernel-dev-24c15496771ea1f3902dee23f746042ba34dc2b8.tar.gz
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>
Diffstat (limited to 'drivers/mtd/mtdoops.c')
-rw-r--r--drivers/mtd/mtdoops.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 92e12df..328313c 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -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) {
OpenPOWER on IntegriCloud