mmc: bcm2835: Drop DMA channel error pointer check
[sfrench/cifs-2.6.git] / drivers / mmc / host / bcm2835.c
index c9e7aa50bb0ab5d05884d8ebfe6ef740adeda150..ab8d58a60352008f4fa71fa3378794bcf836ad58 100644 (file)
@@ -1286,7 +1286,7 @@ static int bcm2835_add_host(struct bcm2835_host *host)
        spin_lock_init(&host->lock);
        mutex_init(&host->mutex);
 
-       if (IS_ERR_OR_NULL(host->dma_chan_rxtx)) {
+       if (!host->dma_chan_rxtx) {
                dev_warn(dev, "unable to initialise DMA channel. Falling back to PIO\n");
                host->use_dma = false;
        } else {