projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd1c36
)
PCI: sparse warning (trivial)
author
Stephen Hemminger
<shemminger@vyatta.com>
Tue, 1 Jun 2010 16:00:16 +0000
(09:00 -0700)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:29:13 +0000
(09:29 -0700)
Assigning zero where NULL should be used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/bus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/bus.c
b/drivers/pci/bus.c
index 628ea20a884190afbbffff2f80e0faf5cbaade1b..42eea5fbc13b92125e9e1386c1dba94a29c1f007 100644
(file)
--- a/
drivers/pci/bus.c
+++ b/
drivers/pci/bus.c
@@
-56,7
+56,7
@@
void pci_bus_remove_resources(struct pci_bus *bus)
int i;
for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++)
- bus->resource[i] =
0
;
+ bus->resource[i] =
NULL
;
list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) {
list_del(&bus_res->list);