mtd: pcmciamtd: remove dead code
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Oct 24 20:59:04 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2
Commit: a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2
Parent: cf363518ca44d654c51497b3f73c69a34565155d
Author: Dan Carpenter <error27 at gmail.com>
AuthorDate: Tue Aug 24 13:56:27 2010 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun Oct 24 23:41:24 2010 +0100
mtd: pcmciamtd: remove dead code
This code isn't reachable. I looked through the git history and it
hasn't been reachable for years. Someone removed the label to silence
gcc's unused label warning but these few lines accidentally got left
behind.
Signed-off-by: Dan Carpenter <error27 at gmail.com>
Acked-by: Dominik Brodowski <linux at dominikbrodowski.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/maps/pcmciamtd.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index e9ca5ba..86c7468 100644
--- a/drivers/mtd/maps/pcmciamtd.c
+++ b/drivers/mtd/maps/pcmciamtd.c
@@ -654,10 +654,6 @@ static int pcmciamtd_config(struct pcmcia_device *link)
}
dev_info(&dev->p_dev->dev, "mtd%d: %s\n", mtd->index, mtd->name);
return 0;
-
- dev_err(&dev->p_dev->dev, "CS Error, exiting\n");
- pcmciamtd_release(link);
- return -ENODEV;
}
More information about the linux-mtd-cvs
mailing list