Skip to contentSkip to conversation

sh-intc-delete-an-error-message-for-a-failed-memory-allocation-in-add_virq_to_pirq.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 7, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: drivers/sh/intc/virq.c: delete an error message for a failed memory allocation in add_virq_to_pirq()
has been removed from the -mm tree. Its filename was
sh-intc-delete-an-error-message-for-a-failed-memory-allocation-in-add_virq_to_pirq.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: SF Markus Elfring <[email protected]>
Subject: drivers/sh/intc/virq.c: delete an error message for a failed memory allocation in add_virq_to_pirq()

This issue was detected by using the Coccinelle software.

---

 drivers/sh/intc/virq.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/sh/intc/virq.c renamed from drivers/sh/intc/virq.c~sh-intc-delete-an-error-message-for-a-failed-memory-allocation-in-add_virq_to_pirq +1 -3
diff -puN drivers/sh/intc/virq.c~sh-intc-delete-an-error-message-for-a-failed-memory-allocation-in-add_virq_to_pirq drivers/sh/intc/virq.c
@@ -94,10 +94,8 @@ static int add_virq_to_pirq(unsigned int
 	}
 
 	entry = kzalloc(sizeof(struct intc_virq_list), GFP_ATOMIC);
-	if (!entry) {
-		pr_err("can't allocate VIRQ mapping for %d\n", virq);
+	if (!entry)
 		return -ENOMEM;
-	}
 
 	entry->irq = virq;
 

_

Patches currently in -mm which might be from [email protected] are