Message ID | 980fa869-f75b-3436-a329-09613e2ab915@users.sourceforge.net (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index c00e3923d7d8..818ab96f9601 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -1950,10 +1950,8 @@ static int at_xdmac_probe(struct platform_device *pdev) size = sizeof(*atxdmac); size += nr_channels * sizeof(struct at_xdmac_chan); atxdmac = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); - if (!atxdmac) { - dev_err(&pdev->dev, "can't allocate at_xdmac structure\n"); + if (!atxdmac) return -ENOMEM; - } atxdmac->regs = base; atxdmac->irq = irq;