提交 6ab41161 编写于 作者: M Markus Elfring 提交者: Michael Ellerman

powerpc/eeh: Delete an error out of memory message at init time

Omit an extra message for a memory allocation failure in
eeh_dev_init().

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
[mpe: Do not drop the message that can happen at runtime and lead to
 an event not being handled]
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 aae85e3c
...@@ -54,11 +54,8 @@ struct eeh_dev *eeh_dev_init(struct pci_dn *pdn) ...@@ -54,11 +54,8 @@ struct eeh_dev *eeh_dev_init(struct pci_dn *pdn)
/* Allocate EEH device */ /* Allocate EEH device */
edev = kzalloc(sizeof(*edev), GFP_KERNEL); edev = kzalloc(sizeof(*edev), GFP_KERNEL);
if (!edev) { if (!edev)
pr_warn("%s: out of memory\n",
__func__);
return NULL; return NULL;
}
/* Associate EEH device with OF node */ /* Associate EEH device with OF node */
pdn->edev = edev; pdn->edev = edev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册