diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2016-06-07 13:38:41 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-06-21 12:05:00 -0400 |
commit | aef94fea97eb77f86159375825a370b45d9f2fec (patch) | |
tree | 275639d62e6c0920e859e3d22786cb92a4098e04 /drivers/dma/sirf-dma.c | |
parent | 71f7e6cc55003ca6f616ff4094253d28de5d9254 (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/sirf-dma.c')
-rw-r--r-- | drivers/dma/sirf-dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dma/sirf-dma.c b/drivers/dma/sirf-dma.c index e48350e65089..8ea51c745953 100644 --- a/drivers/dma/sirf-dma.c +++ b/drivers/dma/sirf-dma.c | |||
@@ -854,10 +854,9 @@ static int sirfsoc_dma_probe(struct platform_device *op) | |||
854 | int ret, i; | 854 | int ret, i; |
855 | 855 | ||
856 | sdma = devm_kzalloc(dev, sizeof(*sdma), GFP_KERNEL); | 856 | sdma = devm_kzalloc(dev, sizeof(*sdma), GFP_KERNEL); |
857 | if (!sdma) { | 857 | if (!sdma) |
858 | dev_err(dev, "Memory exhausted!\n"); | ||
859 | return -ENOMEM; | 858 | return -ENOMEM; |
860 | } | 859 | |
861 | data = (struct sirfsoc_dmadata *) | 860 | data = (struct sirfsoc_dmadata *) |
862 | (of_match_device(op->dev.driver->of_match_table, | 861 | (of_match_device(op->dev.driver->of_match_table, |
863 | &op->dev)->data); | 862 | &op->dev)->data); |