Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28a5cd51 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Torvalds
Browse files

drivers/rapidio/devices/tsi721_dma.c: delete an error message for a failed...

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: 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 4ba61eca
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -754,9 +754,6 @@ static int tsi721_alloc_chan_resources(struct dma_chan *dchan)
	desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc),
	desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc),
			GFP_ATOMIC);
			GFP_ATOMIC);
	if (!desc) {
	if (!desc) {
		tsi_err(&dchan->dev->device,
			"DMAC%d Failed to allocate logical descriptors",
			bdma_chan->id);
		tsi721_bdma_ch_free(bdma_chan);
		tsi721_bdma_ch_free(bdma_chan);
		return -ENOMEM;
		return -ENOMEM;
	}
	}