summaryrefslogtreecommitdiffstats
path: root/drivers/rapidio
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-06 18:40:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-06 21:32:46 -0500
commit28a5cd5182f292f426d99bafff9ca0d8c9e4a6d8 (patch)
treed93123f67a55bbbbf9242c8bd91466a5249bc8fb /drivers/rapidio
parent4ba61ecacbac10e74e5ac816ac4e02bf5737fe38 (diff)
drivers/rapidio/devices/tsi721_dma.c: delete an error message for a failed memory allocation in tsi721_alloc_chan_resources()
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/a96fcaf8-ea24-bcac-0214-273620349d42@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/devices/tsi721_dma.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rapidio/devices/tsi721_dma.c b/drivers/rapidio/devices/tsi721_dma.c
index e2a418598129..f7bc85a27d1b 100644
--- a/drivers/rapidio/devices/tsi721_dma.c
+++ b/drivers/rapidio/devices/tsi721_dma.c
@@ -754,9 +754,6 @@ static int tsi721_alloc_chan_resources(struct dma_chan *dchan)
754 desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc), 754 desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc),
755 GFP_ATOMIC); 755 GFP_ATOMIC);
756 if (!desc) { 756 if (!desc) {
757 tsi_err(&dchan->dev->device,
758 "DMAC%d Failed to allocate logical descriptors",
759 bdma_chan->id);
760 tsi721_bdma_ch_free(bdma_chan); 757 tsi721_bdma_ch_free(bdma_chan);
761 return -ENOMEM; 758 return -ENOMEM;
762 } 759 }