Commit cc4b6c40 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: Coding style fixes for drivers/pci/hotplug.c

parent a4b85c05
...@@ -116,7 +116,7 @@ static int pci_visit_bridge (struct pci_visit * fn, ...@@ -116,7 +116,7 @@ static int pci_visit_bridge (struct pci_visit * fn,
} }
bus = wrapped_dev->dev->subordinate; bus = wrapped_dev->dev->subordinate;
if(bus) { if (bus) {
memset(&wrapped_bus, 0, sizeof(struct pci_bus_wrapped)); memset(&wrapped_bus, 0, sizeof(struct pci_bus_wrapped));
wrapped_bus.bus = bus; wrapped_bus.bus = bus;
...@@ -130,8 +130,8 @@ static int pci_visit_bridge (struct pci_visit * fn, ...@@ -130,8 +130,8 @@ static int pci_visit_bridge (struct pci_visit * fn,
* Every bus and every function is presented to a custom * Every bus and every function is presented to a custom
* function that can act upon it. * function that can act upon it.
*/ */
int pci_visit_dev (struct pci_visit *fn, struct pci_dev_wrapped *wrapped_dev, int pci_visit_dev(struct pci_visit *fn, struct pci_dev_wrapped *wrapped_dev,
struct pci_bus_wrapped *wrapped_parent) struct pci_bus_wrapped *wrapped_parent)
{ {
struct pci_dev* dev = wrapped_dev ? wrapped_dev->dev : NULL; struct pci_dev* dev = wrapped_dev ? wrapped_dev->dev : NULL;
int result = 0; int result = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment