mtd: maps: rbtx4939-flash: delete unneeded test
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Sep 29 10:59:09 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c83d29f008fbf093b192985b424e19cb16d4b75c
Commit: c83d29f008fbf093b192985b424e19cb16d4b75c
Parent: 25806d3cd2d3214225a86ade366364d4d9a911eb
Author: Julia Lawall <Julia.Lawall at lip6.fr>
AuthorDate: Sun Aug 19 10:44:23 2012 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:06:26 2012 +0100
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 at lip6.fr>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/maps/rbtx4939-flash.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 6f52e1f..49c3fe7 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);
More information about the linux-mtd-cvs
mailing list