aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/cfi_probe.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 01:19:35 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 01:42:25 -0400
commit5c8b1fbb2e1bfaffbaf9b8d8c47bb65470787de6 (patch)
tree454f5b82753baf153b9de598c662f3425b85a97a /drivers/mtd/chips/cfi_probe.c
parente4eec195f3e8106362da72c9d94dd6fcf598ddb7 (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_probe.c')
-rw-r--r--drivers/mtd/chips/cfi_probe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/chips/cfi_probe.c b/drivers/mtd/chips/cfi_probe.c
index d25535279404..e8d0164498b0 100644
--- a/drivers/mtd/chips/cfi_probe.c
+++ b/drivers/mtd/chips/cfi_probe.c
@@ -168,10 +168,8 @@ static int __xipram cfi_chip_setup(struct map_info *map,
168 return 0; 168 return 0;
169 169
170 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); 170 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL);
171 if (!cfi->cfiq) { 171 if (!cfi->cfiq)
172 printk(KERN_WARNING "%s: kmalloc failed for CFI ident structure\n", map->name);
173 return 0; 172 return 0;
174 }
175 173
176 memset(cfi->cfiq,0,sizeof(struct cfi_ident)); 174 memset(cfi->cfiq,0,sizeof(struct cfi_ident));
177 175