diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-11-09 10:44:58 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-11-09 10:44:58 +0100 |
commit | 590f9d031162dd2377980c4daadff7cc85cdff02 (patch) | |
tree | f4341914e686f3ac2f21b9a885e05f0d731f270b /com32 | |
parent | fe18d4a75a7c5281188bff42c2bdbc53f1ec9ee8 (diff) | |
download | syslinux.git-590f9d031162dd2377980c4daadff7cc85cdff02.tar.gz syslinux.git-590f9d031162dd2377980c4daadff7cc85cdff02.tar.xz syslinux.git-590f9d031162dd2377980c4daadff7cc85cdff02.zip |
pci: Removing useless initialisation
Impact: None
The kernel module count is set to zero when the dev_info is allocated.
Diffstat (limited to 'com32')
-rw-r--r-- | com32/lib/pci/scan.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/com32/lib/pci/scan.c b/com32/lib/pci/scan.c index 55b178dd..1719899e 100644 --- a/com32/lib/pci/scan.c +++ b/com32/lib/pci/scan.c @@ -112,7 +112,6 @@ int get_module_name_from_pcimap(struct pci_domain *domain, strcpy(product_id,"0000"); strcpy(sub_product_id,"0000"); strcpy(sub_vendor_id,"0000"); - dev->dev_info->linux_kernel_module_count=0; /* for each line we found in the modules.pcimap */ while ( fgets(line, sizeof line, f) ) { @@ -633,8 +632,6 @@ int get_module_name_from_alias(struct pci_domain *domain, char *modules_alias_pa if (!f) return -ENOMODULESALIAS; - dev->dev_info->linux_kernel_module_count=0; - /* for each line we found in the modules.pcimap */ while ( fgets(line, sizeof line, f) ) { /* skipping unecessary lines */ |