From: Julia Lawall Date: Sun, 19 Aug 2012 08:44:23 +0000 (+0200) Subject: mtd: maps: rbtx4939-flash: delete unneeded test X-Git-Tag: next-20120904~60^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=722cb92a70e9e7901472136d9a16f27efe051bc3;p=karo-tx-linux.git 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 Signed-off-by: Artem Bityutskiy --- 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);