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
@@ -1300,10 +1300,9 @@ static int nbpf_probe(struct platform_device *pdev)
|
||||
|
||||
nbpf = devm_kzalloc(dev, sizeof(*nbpf) + num_channels *
|
||||
sizeof(nbpf->chan[0]), GFP_KERNEL);
|
||||
if (!nbpf) {
|
||||
dev_err(dev, "Memory allocation failed\n");
|
||||
if (!nbpf)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dma_dev = &nbpf->dma_dev;
|
||||
dma_dev->dev = dev;
|
||||
|
||||
|
Reference in New Issue
Block a user