[PATCH V2 3/6] spi/spi-pl022: Don't allocate more sg than required.

viresh kumar viresh.kumar at st.com
Wed Aug 10 05:05:54 EDT 2011


On 08/10/2011 02:24 PM, Russell King - ARM Linux wrote:
> It would be far better for this to be:
> 
> 	pages = DIV_ROUND_UP(pl022->cur_transfer->len, PAGE_SIZE);
> 
> The compiler will probably optimize it to the same code anyway.

I thought of it too, but missed to update code. Thanks.

-- 
viresh



More information about the linux-arm-kernel mailing list