On Thu, Nov 02, 2006 at 02:30:26PM -0800, Ralph Campbell wrote:

> +static dma_addr_t ipath_dma_map_single(struct ib_device *dev,
> +                                    void *cpu_addr, size_t size,
> +                                    enum dma_data_direction direction)
> +{
> +     BUG_ON(direction == DMA_NONE);

Please use BUG_ON(!valid_dma_direction(direction)) here and elsewhere
instead.

Cheers,
Muli

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to