Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54f5a57e authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent e61e4f40
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -55,10 +55,8 @@ struct mtd_info *lpddr_cmdset(struct map_info *map)
	int i, j;

	mtd = kzalloc(sizeof(*mtd), GFP_KERNEL);
	if (!mtd) {
		printk(KERN_ERR "Failed to allocate memory for MTD device\n");
	if (!mtd)
		return NULL;
	}
	mtd->priv = map;
	mtd->type = MTD_NORFLASH;

+1 −4
Original line number Diff line number Diff line
@@ -135,11 +135,8 @@ static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr)
{

	lpddr->qinfo = kzalloc(sizeof(struct qinfo_chip), GFP_KERNEL);
	if (!lpddr->qinfo) {
		printk(KERN_WARNING "%s: no memory for LPDDR qinfo structure\n",
				map->name);
	if (!lpddr->qinfo)
		return 0;
	}

	/* Get the ManuID */
	lpddr->ManufactId = CMDVAL(map_read(map, map->pfow_base + PFOW_MANUFACTURER_ID));