From: Julia Lawall Date: Sun, 19 Aug 2012 08:44:23 +0000 (+0200) Subject: mtd: maps: rbtx4939-flash: delete unneeded test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c83d29f008fbf093b192985b424e19cb16d4b75c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: David Woodhouse --- 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);