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

mtd: lpddr: 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
54f5a57e e61e4f40

+2 -7
+1 -3
drivers/mtd/lpddr/lpddr_cmds.c
··· 55 55 int i, j; 56 56 57 57 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); 58 - if (!mtd) { 59 - printk(KERN_ERR "Failed to allocate memory for MTD device\n"); 58 + if (!mtd) 60 59 return NULL; 61 - } 62 60 mtd->priv = map; 63 61 mtd->type = MTD_NORFLASH; 64 62
+1 -4
drivers/mtd/lpddr/qinfo_probe.c
··· 135 135 { 136 136 137 137 lpddr->qinfo = kzalloc(sizeof(struct qinfo_chip), GFP_KERNEL); 138 - if (!lpddr->qinfo) { 139 - printk(KERN_WARNING "%s: no memory for LPDDR qinfo structure\n", 140 - map->name); 138 + if (!lpddr->qinfo) 141 139 return 0; 142 - } 143 140 144 141 /* Get the ManuID */ 145 142 lpddr->ManufactId = CMDVAL(map_read(map, map->pfow_base + PFOW_MANUFACTURER_ID));