diff options
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/gen_probe.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index ffb36ba8a6e0..b57ceea21513 100644 --- a/drivers/mtd/chips/gen_probe.c +++ b/drivers/mtd/chips/gen_probe.c | |||
@@ -114,7 +114,6 @@ static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chi | |||
114 | mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); | 114 | mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); |
115 | chip_map = kzalloc(mapsize, GFP_KERNEL); | 115 | chip_map = kzalloc(mapsize, GFP_KERNEL); |
116 | if (!chip_map) { | 116 | if (!chip_map) { |
117 | printk(KERN_WARNING "%s: kmalloc failed for CFI chip map\n", map->name); | ||
118 | kfree(cfi.cfiq); | 117 | kfree(cfi.cfiq); |
119 | return NULL; | 118 | return NULL; |
120 | } | 119 | } |
@@ -139,7 +138,6 @@ static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chi | |||
139 | retcfi = kmalloc(sizeof(struct cfi_private) + cfi.numchips * sizeof(struct flchip), GFP_KERNEL); | 138 | retcfi = kmalloc(sizeof(struct cfi_private) + cfi.numchips * sizeof(struct flchip), GFP_KERNEL); |
140 | 139 | ||
141 | if (!retcfi) { | 140 | if (!retcfi) { |
142 | printk(KERN_WARNING "%s: kmalloc failed for CFI private structure\n", map->name); | ||
143 | kfree(cfi.cfiq); | 141 | kfree(cfi.cfiq); |
144 | kfree(chip_map); | 142 | kfree(chip_map); |
145 | return NULL; | 143 | return NULL; |