projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25806d3
)
mtd: maps: rbtx4939-flash: delete unneeded test
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 19 Aug 2012 08:44:23 +0000
(10:44 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:06:26 +0000
(15:06 +0100)
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>
drivers/mtd/maps/rbtx4939-flash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/rbtx4939-flash.c
b/drivers/mtd/maps/rbtx4939-flash.c
index
6f52e1f
..
49c3fe7
100644
(file)
--- 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);