浏览代码

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: Markus 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: Michael Ellerman <mpe@ellerman.id.au>
Markus Elfring 8 年之前
父节点
当前提交
6ab41161b4
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      arch/powerpc/kernel/eeh_dev.c

+ 1 - 4
arch/powerpc/kernel/eeh_dev.c

@@ -54,11 +54,8 @@ struct eeh_dev *eeh_dev_init(struct pci_dn *pdn)
 
 	/* Allocate EEH device */
 	edev = kzalloc(sizeof(*edev), GFP_KERNEL);
-	if (!edev) {
-		pr_warn("%s: out of memory\n",
-			__func__);
+	if (!edev)
 		return NULL;
-	}
 
 	/* Associate EEH device with OF node */
 	pdn->edev = edev;