On Mon, Nov 12, 2012 at 4:53 PM, Andy Shevchenko <andriy.shevche...@linux.intel.com> 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/