diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-06 10:19:35 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-11 09:42:25 +0400 |
commit | 5c8b1fbb2e1bfaffbaf9b8d8c47bb65470787de6 (patch) | |
tree | 454f5b82753baf153b9de598c662f3425b85a97a /drivers/mtd/chips/cfi_probe.c | |
parent | e4eec195f3e8106362da72c9d94dd6fcf598ddb7 (diff) | |
download | linux-5c8b1fbb2e1bfaffbaf9b8d8c47bb65470787de6.tar.xz |
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.c | 4 |
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, return 0; cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); - if (!cfi->cfiq) { - printk(KERN_WARNING "%s: kmalloc failed for CFI ident structure\n", map->name); + if (!cfi->cfiq) return 0; - } memset(cfi->cfiq,0,sizeof(struct cfi_ident)); |