summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-19 10:44:23 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 15:06:26 +0100
commitc83d29f008fbf093b192985b424e19cb16d4b75c (patch)
treeddecb595c71e09622861f7946a4c6d0284a08bef /drivers/mtd
parent25806d3cd2d3214225a86ade366364d4d9a911eb (diff)
downloadlinux-c83d29f008fbf093b192985b424e19cb16d4b75c.tar.gz
linux-c83d29f008fbf093b192985b424e19cb16d4b75c.tar.bz2
linux-c83d29f008fbf093b192985b424e19cb16d4b75c.zip
mtd: maps: rbtx4939-flash: delete unneeded test
Err has only been initialized to 0 at this, so it is not possible that this test can be true. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/maps/rbtx4939-flash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 6f52e1f288b6..49c3fe715eee 100644
--- a/drivers/mtd/maps/rbtx4939-flash.c
+++ b/drivers/mtd/maps/rbtx4939-flash.c
@@ -100,8 +100,6 @@ static int rbtx4939_flash_probe(struct platform_device *dev)
goto err_out;
}
info->mtd->owner = THIS_MODULE;
- if (err)
- goto err_out;
err = mtd_device_parse_register(info->mtd, NULL, NULL, pdata->parts,
pdata->nr_parts);