From 590f9d031162dd2377980c4daadff7cc85cdff02 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Mon, 9 Nov 2009 10:44:58 +0100 Subject: [PATCH] pci: Removing useless initialisation Impact: None The kernel module count is set to zero when the dev_info is allocated. --- com32/lib/pci/scan.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/com32/lib/pci/scan.c b/com32/lib/pci/scan.c index 55b178d..1719899 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 */ -- 2.7.4