projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecfea5d
)
PCI: Remove unnecessary initializations
author
Bjorn Helgaas
<bhelgaas@google.com>
Tue, 6 Oct 2020 21:54:39 +0000
(16:54 -0500)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 25 Aug 2023 13:15:04 +0000
(08:15 -0500)
We always assign "fields" immediately, so remove the unnecessary
initializations. No functional change intended.
Link:
https://lore.kernel.org/r/20230824193712.542167-4-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/pci-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci-driver.c
b/drivers/pci/pci-driver.c
index 1f9845377effc3c15a31228ce51e3fbf5862f6be..a44ecf6bf5d28fdc3ba7557d1e7e57a8059430fa 100644
(file)
--- a/
drivers/pci/pci-driver.c
+++ b/
drivers/pci/pci-driver.c
@@
-193,7
+193,7
@@
static ssize_t new_id_store(struct device_driver *driver, const char *buf,
u32 vendor, device, subvendor = PCI_ANY_ID,
subdevice = PCI_ANY_ID, class = 0, class_mask = 0;
unsigned long driver_data = 0;
- int fields
= 0
;
+ int fields;
int retval = 0;
fields = sscanf(buf, "%x %x %x %x %x %x %lx",
@@
-260,7
+260,7
@@
static ssize_t remove_id_store(struct device_driver *driver, const char *buf,
struct pci_driver *pdrv = to_pci_driver(driver);
u32 vendor, device, subvendor = PCI_ANY_ID,
subdevice = PCI_ANY_ID, class = 0, class_mask = 0;
- int fields
= 0
;
+ int fields;
size_t retval = -ENODEV;
fields = sscanf(buf, "%x %x %x %x %x %x",