drivers/rapidio/devices/tsi721_dma.c: delete an error message for a failed memory...
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 6 Feb 2018 23:40:06 +0000 (15:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:46 +0000 (18:32 -0800)
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>
drivers/rapidio/devices/tsi721_dma.c

index e2a4185..f7bc85a 100644 (file)
@@ -754,9 +754,6 @@ static int tsi721_alloc_chan_resources(struct dma_chan *dchan)
        desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc),
                        GFP_ATOMIC);
        if (!desc) {
-               tsi_err(&dchan->dev->device,
-                       "DMAC%d Failed to allocate logical descriptors",
-                       bdma_chan->id);
                tsi721_bdma_ch_free(bdma_chan);
                return -ENOMEM;
        }