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>
This commit is contained in:
committed by
Vinod Koul
parent
71f7e6cc55
commit
aef94fea97
@@ -854,10 +854,9 @@ static int sirfsoc_dma_probe(struct platform_device *op)
|
||||
int ret, i;
|
||||
|
||||
sdma = devm_kzalloc(dev, sizeof(*sdma), GFP_KERNEL);
|
||||
if (!sdma) {
|
||||
dev_err(dev, "Memory exhausted!\n");
|
||||
if (!sdma)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
data = (struct sirfsoc_dmadata *)
|
||||
(of_match_device(op->dev.driver->of_match_table,
|
||||
&op->dev)->data);
|
||||
|
||||
Reference in New Issue
Block a user