diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-08-19 10:44:23 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 15:06:26 +0100 |
commit | c83d29f008fbf093b192985b424e19cb16d4b75c (patch) | |
tree | ddecb595c71e09622861f7946a4c6d0284a08bef /drivers/mtd/maps | |
parent | 25806d3cd2d3214225a86ade366364d4d9a911eb (diff) | |
download | linux-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/maps')
-rw-r--r-- | 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 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); |