diff options
author | 2016-06-07 18:38:41 +0100 | |
---|---|---|
committer | 2016-06-21 21:35:00 +0530 | |
commit | aef94fea97eb77f86159375825a370b45d9f2fec (patch) | |
tree | 275639d62e6c0920e859e3d22786cb92a4098e04 /drivers/dma/mmp_tdma.c | |
parent | dmaengine: tegra20-apb-dma: Only calculate residue if txstate exists. (diff) | |
download | linux-aef94fea97eb77f86159375825a370b45d9f2fec.tar.gz linux-aef94fea97eb77f86159375825a370b45d9f2fec.tar.bz2 linux-aef94fea97eb77f86159375825a370b45d9f2fec.zip |
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/mmp_tdma.c')
-rw-r--r-- | drivers/dma/mmp_tdma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 3df0422607d5..ba7f412696c9 100644 --- a/drivers/dma/mmp_tdma.c +++ b/drivers/dma/mmp_tdma.c @@ -551,10 +551,9 @@ static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, /* alloc channel */ tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); - if (!tdmac) { - dev_err(tdev->dev, "no free memory for DMA channels!\n"); + if (!tdmac) return -ENOMEM; - } + if (irq) tdmac->irq = irq; tdmac->dev = tdev->dev; |