drivers/sh/intc/virq.c: delete an error message for a failed memory allocation in add_virq_to_pirq()
PATCH 14/108 drivers/sh/intc/virq.c: delete an error message for a failed memory allocation in add_virq_to_pirq()
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.
Signed-off-by Markus Elfring <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
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
@@ -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;
_