aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-08-24 13:56:27 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-24 23:41:24 +0100
commita41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2 (patch)
treea7801a4b50cd1bc851dad2474fb48348bcc03710 /drivers/mtd/maps
parentcf363518ca44d654c51497b3f73c69a34565155d (diff)
downloadkernel_samsung_smdk4412-a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2.zip
kernel_samsung_smdk4412-a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2.tar.gz
kernel_samsung_smdk4412-a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2.tar.bz2
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@gmail.com> Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/pcmciamtd.c4
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;
}