Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

SF Markus Elfring and committed by
Linus Torvalds
c509e05f 820a0b24

+1 -3
+1 -3
drivers/sh/intc/virq.c
··· 94 94 } 95 95 96 96 entry = kzalloc(sizeof(struct intc_virq_list), GFP_ATOMIC); 97 - if (!entry) { 98 - pr_err("can't allocate VIRQ mapping for %d\n", virq); 97 + if (!entry) 99 98 return -ENOMEM; 100 - } 101 99 102 100 entry->irq = virq; 103 101