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

viresh kumar viresh.kumar at st.com
Wed Aug 10 07:46:09 EDT 2011


On 08/10/2011 05:12 PM, Sergei Shtylyov wrote:
>> > -	pages = (pl022->cur_transfer->len>>  PAGE_SHIFT) + 1;
>> > +	pages = ((pl022->cur_transfer->len + (1 << PAGE_SHIFT) - 1)
>> > +			>>  PAGE_SHIFT);
>     No need for parens around the rvalue.

Oops, that was a mistake. Anyway i have send V3 for the same and this issue
is not present anymore.

-- 
viresh



More information about the linux-arm-kernel mailing list