]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: maps: rbtx4939-flash: delete unneeded test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 19 Aug 2012 08:44:23 +0000 (10:44 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 25 Aug 2012 11:49:55 +0000 (14:49 +0300)
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>
drivers/mtd/maps/rbtx4939-flash.c

index 6f52e1f288b674074f3045667c35678a09cb6f98..49c3fe715eee155cfc7519f5327e5f03640bd3be 100644 (file)
@@ -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);