lkml.org 
[lkml]   [2008]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 50/54] ISAPNP: fold isapnp_read_resources() back into isapnp_get_resources()
    On 25-04-08 20:38, Bjorn Helgaas wrote:

    > + for (i = 0; i < ISAPNP_MAX_MEM; i++) {
    > + ret = isapnp_read_word(ISAPNP_CFG_MEM + (i << 3)) << 8;
    > + if (!ret)
    > + continue;
    > + pnp_res = pnp_add_mem_resource(dev, ret, ret, 0);
    > + if (pnp_res)
    > + pnp_res->index = i;
    > + }
    > + for (i = 0; i < ISAPNP_MAX_IRQ; i++) {
    > + ret = (isapnp_read_word(ISAPNP_CFG_IRQ + (i << 1)) >>
    > + 8);

    Truly trivial, but if you kill the useless outer (), it fits on one line...

    Rene


    \
     
     \ /
      Last update: 2008-04-27 01:09    [W:4.154 / U:0.864 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site