aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/s3c24xx-dma.c
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2016-06-07 13:38:41 -0400
committerVinod Koul <vinod.koul@intel.com>2016-06-21 12:05:00 -0400
commitaef94fea97eb77f86159375825a370b45d9f2fec (patch)
tree275639d62e6c0920e859e3d22786cb92a4098e04 /drivers/dma/s3c24xx-dma.c
parent71f7e6cc55003ca6f616ff4094253d28de5d9254 (diff)
dmaengine: Remove site specific OOM error messages on kzalloc
If kzalloc() fails it will issue it's own error message including a dump_stack(). So remove the site specific error messages. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Acked-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/s3c24xx-dma.c')
-rw-r--r--drivers/dma/s3c24xx-dma.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c
index f7d2c7a00496..0d2d187646f4 100644
--- a/drivers/dma/s3c24xx-dma.c
+++ b/drivers/dma/s3c24xx-dma.c
@@ -1101,11 +1101,8 @@ static int s3c24xx_dma_init_virtual_channels(struct s3c24xx_dma_engine *s3cdma,
1101 */ 1101 */
1102 for (i = 0; i < channels; i++) { 1102 for (i = 0; i < channels; i++) {
1103 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); 1103 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL);
1104 if (!chan) { 1104 if (!chan)
1105 dev_err(dmadev->dev,
1106 "%s no memory for channel\n", __func__);
1107 return -ENOMEM; 1105 return -ENOMEM;
1108 }
1109 1106
1110 chan->id = i; 1107 chan->id = i;
1111 chan->host = s3cdma; 1108 chan->host = s3cdma;