diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-06 01:19:35 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-11 01:42:25 -0400 |
commit | 5c8b1fbb2e1bfaffbaf9b8d8c47bb65470787de6 (patch) | |
tree | 454f5b82753baf153b9de598c662f3425b85a97a /drivers/mtd/chips/cfi_cmdset_0020.c | |
parent | e4eec195f3e8106362da72c9d94dd6fcf598ddb7 (diff) |
mtd: cfi: Remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0020.c')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0020.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c index 88529422c401..6293855fb5ee 100644 --- a/drivers/mtd/chips/cfi_cmdset_0020.c +++ b/drivers/mtd/chips/cfi_cmdset_0020.c | |||
@@ -175,7 +175,6 @@ static struct mtd_info *cfi_staa_setup(struct map_info *map) | |||
175 | //printk(KERN_DEBUG "number of CFI chips: %d\n", cfi->numchips); | 175 | //printk(KERN_DEBUG "number of CFI chips: %d\n", cfi->numchips); |
176 | 176 | ||
177 | if (!mtd) { | 177 | if (!mtd) { |
178 | printk(KERN_ERR "Failed to allocate memory for MTD device\n"); | ||
179 | kfree(cfi->cmdset_priv); | 178 | kfree(cfi->cmdset_priv); |
180 | return NULL; | 179 | return NULL; |
181 | } | 180 | } |
@@ -188,7 +187,6 @@ static struct mtd_info *cfi_staa_setup(struct map_info *map) | |||
188 | mtd->eraseregions = kmalloc(sizeof(struct mtd_erase_region_info) | 187 | mtd->eraseregions = kmalloc(sizeof(struct mtd_erase_region_info) |
189 | * mtd->numeraseregions, GFP_KERNEL); | 188 | * mtd->numeraseregions, GFP_KERNEL); |
190 | if (!mtd->eraseregions) { | 189 | if (!mtd->eraseregions) { |
191 | printk(KERN_ERR "Failed to allocate memory for MTD erase region info\n"); | ||
192 | kfree(cfi->cmdset_priv); | 190 | kfree(cfi->cmdset_priv); |
193 | kfree(mtd); | 191 | kfree(mtd); |
194 | return NULL; | 192 | return NULL; |