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_util.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_util.c')
-rw-r--r-- | drivers/mtd/chips/cfi_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c index f992418f40a8..08049f6eea60 100644 --- a/drivers/mtd/chips/cfi_util.c +++ b/drivers/mtd/chips/cfi_util.c @@ -116,10 +116,8 @@ __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* n printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); extp = kmalloc(size, GFP_KERNEL); - if (!extp) { - printk(KERN_ERR "Failed to allocate memory\n"); + if (!extp) goto out; - } #ifdef CONFIG_MTD_XIP local_irq_disable(); |