From: Dan Carpenter Date: Tue, 24 Aug 2010 11:56:27 +0000 (+0200) Subject: mtd: pcmciamtd: remove dead code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;ds=sidebyside;h=a41ccf5a3e22c3dc1e7be134afdaa97e1aed01e2;p=mv-sheeva.git 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 Acked-by: Dominik Brodowski Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index e9ca5ba7d9d..86c74685eb7 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; }