caif: Remove OOM messages, use kzalloc
[deliverable/linux.git] / drivers / net / caif / caif_spi.c
index 0f8defc73307271f6dd67ff8e72ac173a9c002c4..05e791f46aef7db07b5df2393db24d7a56108ab5 100644 (file)
@@ -664,8 +664,6 @@ int cfspi_spi_probe(struct platform_device *pdev)
        /* Allocate DMA buffers. */
        cfspi->xfer.va_tx = dma_alloc(&cfspi->xfer.pa_tx);
        if (!cfspi->xfer.va_tx) {
-               printk(KERN_WARNING
-                      "CFSPI: failed to allocate dma TX buffer.\n");
                res = -ENODEV;
                goto err_dma_alloc_tx;
        }
@@ -673,8 +671,6 @@ int cfspi_spi_probe(struct platform_device *pdev)
        cfspi->xfer.va_rx = dma_alloc(&cfspi->xfer.pa_rx);
 
        if (!cfspi->xfer.va_rx) {
-               printk(KERN_WARNING
-                      "CFSPI: failed to allocate dma TX buffer.\n");
                res = -ENODEV;
                goto err_dma_alloc_rx;
        }
This page took 0.025662 seconds and 5 git commands to generate.