mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
mtd: nand-gpio: 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>
This commit is contained in:
parent
d9a21ae8e5
commit
24e9971d3d
1 changed files with 1 additions and 3 deletions
|
@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev)
|
|||
return -EINVAL;
|
||||
|
||||
gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL);
|
||||
if (!gpiomtd) {
|
||||
dev_err(&pdev->dev, "failed to create NAND MTD\n");
|
||||
if (!gpiomtd)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
chip = &gpiomtd->nand_chip;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue