lkml.org 
[lkml]   [2009]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/9] pci: don't dump it when bus resource flags is not set

    mean it is not used, so skip it.

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    drivers/pci/setup-bus.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/drivers/pci/setup-bus.c
    ===================================================================
    --- linux-2.6.orig/drivers/pci/setup-bus.c
    +++ linux-2.6/drivers/pci/setup-bus.c
    @@ -725,7 +725,7 @@ static void pci_bus_dump_res(struct pci_
    for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) {
    struct resource *res = bus->resource[i];

    - if (!res || !res->end)
    + if (!res || !res->end || !res->flags)
    continue;

    dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res);


    \
     
     \ /
      Last update: 2009-11-25 21:03    [W:0.020 / U:0.392 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site