Re: [PATCH] dw_dmac: absence of pdata isn't critical when autocfg is set

From: viresh kumar
Date: Mon Nov 12 2012 - 09:03:03 EST


On Mon, Nov 12, 2012 at 4:53 PM, Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> + if (!pdata && autocfg)
> + pdata = &dw_dma_pdata;
> +
> + if (!pdata || pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS)
> + return -EINVAL;
> +

Another thing: replace the second if with else if :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/