Extended Capabilities Linked-List Parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

I was looking through pci_init_capabilities().

I noticed that most of the init functions in it call pci_find_capability(),
and return early if they can't find the capability in the list.

It seemed odd to me that each init function made a separate call into pci_find_capability().

Wouldn't it be better to walk the list once (in pci_init_capabilities()),
find all of the capability entries, and only call the init functions for entries that exist?

Thanks,
Sean O. Stalley
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux