mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
mtd: atmel_nand: 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> Acked-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
8f91fb681e
commit
9e3677a813
1 changed files with 1 additions and 3 deletions
|
@ -1961,10 +1961,8 @@ static int atmel_nand_probe(struct platform_device *pdev)
|
|||
|
||||
/* Allocate memory for the device structure (and zero it) */
|
||||
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
|
||||
if (!host) {
|
||||
printk(KERN_ERR "atmel_nand: failed to allocate device structure.\n");
|
||||
if (!host)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
res = platform_driver_register(&atmel_nand_nfc_driver);
|
||||
if (res)
|
||||
|
|
Loading…
Reference in a new issue