[PATCH 10/15] ps3stor_lib: Add support for multiple regions
Andre Heider
a.heider at gmail.com
Tue Aug 2 07:01:11 EST 2011
On Mon, Aug 1, 2011 at 10:35 PM, Geert Uytterhoeven
<geert at linux-m68k.org> wrote:
> On Mon, Aug 1, 2011 at 22:03, Andre Heider <a.heider at gmail.com> wrote:
>> priv->gendisk = gendisk;
>> +
>> + /* find first accessible region */
>> + for (region_idx = 0; region_idx < dev->num_regions; region_idx++)
>> + if (test_bit(region_idx, &dev->accessible_regions)) {
>> + priv->region_idx = region_idx;
>> + break;
>> + }
>> +
>
> Why not
>
> priv->region_idx = __ffs(dev->accessible_regions);
Right, thanks. Will change that for v2
More information about the Linuxppc-dev
mailing list