RE: [PATCH 11/17] Add memory mapping driver to RapidIO.

From: Zhang Wei
Date: Tue Mar 04 2008 - 21:00:13 EST


Hi, Stephen,

Thanks! I'm considering to commit a updated patch or new code cleaning
patch.
How about your idea?

Cheers!
Wei

> -----Original Message-----
> From: Stephen Rothwell [mailto:sfr@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, March 04, 2008 6:38 PM
> To: Zhang Wei
> Cc: mporter@xxxxxxxxxxxxxxxxxxx; galak@xxxxxxxxxxxxxxxxxxx;
> linuxppc-dev@xxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH 11/17] Add memory mapping driver to RapidIO.
>
> On Wed, 5 Mar 2008 00:29:56 +0800 Zhang Wei
> <wei.zhang@xxxxxxxxxxxxx> wrote:
> >
> > + if (!(rmem->virt = dma_alloc_coherent(NULL, rmem->size,
> > + &rmem->iores.start, GFP_KERNEL))) {
>
> Please separate assignments from tests.
>
> > + if ((ret = rio_space_claim(rmem))) {
>
> Again.
>
> --
> Cheers,
> Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
> http://www.canb.auug.org.au/~sfr/
>
--
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/