linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Extended Capabilities Linked-List Parsing
@ 2015-03-31 23:02 Sean O. Stalley
  0 siblings, 0 replies; only message in thread
From: Sean O. Stalley @ 2015-03-31 23:02 UTC (permalink / raw)
  To: linux-pci

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-31 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 23:02 Extended Capabilities Linked-List Parsing Sean O. Stalley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).