PCI: clean up the dynamic id logic a little bit.

Greg KH
2005-04-01T23:48:32Z

ChangeSet 1.2181.16.25, 2005/03/28 22:00:24-08:00, gregkh@suse.de

PCI: clean up the dynamic id logic a little bit.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/pci/pci-driver.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)

diff -Nru a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
--- a/drivers/pci/pci-driver.c 2005-04-01 15:31:02 -08:00
+++ b/drivers/pci/pci-driver.c 2005-04-01 15:31:02 -08:00
@@ -49,13 +49,6 @@
return error;
}

-static inline void
-dynid_init(struct dynid *dynid)
-{
- memset(dynid, 0, sizeof(*dynid));
- INIT_LIST_HEAD(&dynid->node);
-}
-
/**
* store_new_id
*
@@ -82,8 +75,9 @@
dynid = kmalloc(sizeof(*dynid), GFP_KERNEL);
if (!dynid)
return -ENOMEM;
- dynid_init(dynid);

+ memset(dynid, 0, sizeof(*dynid));
+ INIT_LIST_HEAD(&dynid->node);
dynid->id.vendor = vendor;
dynid->id.device = device;
dynid->id.subvendor = subvendor;
@@ -167,7 +161,6 @@
{
return -ENODEV;
}
-static inline void dynid_init(struct dynid *dynid) {}
static inline void pci_init_dynids(struct pci_dynids *dynids) {}
static inline void pci_free_dynids(struct pci_driver *drv) {}
static inline int pci_create_newid_file(struct pci_driver *drv)