提交 c509e05f 编写于 作者: S SF Markus Elfring 提交者: Linus Torvalds

drivers/sh/intc/virq.c: delete an error message for a failed memory allocation...

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.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Link: http://lkml.kernel.org/r/54e30d61-5183-9911-cf35-1410fb78da5a@users.sourceforge.netSigned-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 820a0b24
...@@ -94,10 +94,8 @@ static int add_virq_to_pirq(unsigned int irq, unsigned int virq) ...@@ -94,10 +94,8 @@ static int add_virq_to_pirq(unsigned int irq, unsigned int virq)
} }
entry = kzalloc(sizeof(struct intc_virq_list), GFP_ATOMIC); entry = kzalloc(sizeof(struct intc_virq_list), GFP_ATOMIC);
if (!entry) { if (!entry)
pr_err("can't allocate VIRQ mapping for %d\n", virq);
return -ENOMEM; return -ENOMEM;
}
entry->irq = virq; entry->irq = virq;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册