Commit 0c5afcad authored by Markus Elfring's avatar Markus Elfring Committed by Linus Torvalds

rapidio: delete an error message for a failed memory allocation in rio_init_mports()

Patch series "RapidIO: Adjustments for some function implementations".

This patch (of 7):

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://lkml.kernel.org/r/dfd6887b-2521-cbf2-af5b-e70b5fa4c33c@users.sourceforge.netSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarAlexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4de373a1
...@@ -2189,7 +2189,6 @@ int rio_init_mports(void) ...@@ -2189,7 +2189,6 @@ int rio_init_mports(void)
work = kcalloc(n, sizeof *work, GFP_KERNEL); work = kcalloc(n, sizeof *work, GFP_KERNEL);
if (!work) { if (!work) {
pr_err("RIO: no memory for work struct\n");
destroy_workqueue(rio_wq); destroy_workqueue(rio_wq);
goto no_disc; goto no_disc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment