Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: gen_probe: 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>

authored by

Jingoo Han and committed by
Brian Norris
c039bef7 5c8b1fbb

-2
-2
drivers/mtd/chips/gen_probe.c
··· 114 114 mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); 115 115 chip_map = kzalloc(mapsize, GFP_KERNEL); 116 116 if (!chip_map) { 117 - printk(KERN_WARNING "%s: kmalloc failed for CFI chip map\n", map->name); 118 117 kfree(cfi.cfiq); 119 118 return NULL; 120 119 } ··· 138 139 retcfi = kmalloc(sizeof(struct cfi_private) + cfi.numchips * sizeof(struct flchip), GFP_KERNEL); 139 140 140 141 if (!retcfi) { 141 - printk(KERN_WARNING "%s: kmalloc failed for CFI private structure\n", map->name); 142 142 kfree(cfi.cfiq); 143 143 kfree(chip_map); 144 144 return NULL;