diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-06 18:39:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-06 21:32:45 -0500 |
commit | 0c5afcade39550a6af1185535e1b6c547e76ff79 (patch) | |
tree | a129f25aa878b28120efe71b2df73ea011d5f681 /drivers/rapidio | |
parent | 4de373a12f3c551f9263f37d609f264b440adfec (diff) |
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.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rapidio')
-rw-r--r-- | drivers/rapidio/rio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 38d949405618..032ede23a8cb 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c | |||
@@ -2189,7 +2189,6 @@ int rio_init_mports(void) | |||
2189 | 2189 | ||
2190 | work = kcalloc(n, sizeof *work, GFP_KERNEL); | 2190 | work = kcalloc(n, sizeof *work, GFP_KERNEL); |
2191 | if (!work) { | 2191 | if (!work) { |
2192 | pr_err("RIO: no memory for work struct\n"); | ||
2193 | destroy_workqueue(rio_wq); | 2192 | destroy_workqueue(rio_wq); |
2194 | goto no_disc; | 2193 | goto no_disc; |
2195 | } | 2194 | } |