projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb7384
)
x86/PCI: Remove unused alloc_pci_root_info() return value
author
Krzysztof Wilczyński
<kw@linux.com>
Tue, 20 Apr 2021 21:09:13 +0000
(21:09 +0000)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 30 Apr 2021 19:08:28 +0000
(14:08 -0500)
The "info" value returned from alloc_pci_root_info() is never used, so drop
it.
[bhelgaas: commit log]
Addresses-Coverity-ID:
1222153
("Unused value")
Link:
https://lore.kernel.org/r/20210420210913.1137116-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/amd_bus.c
patch
|
blob
|
history
diff --git
a/arch/x86/pci/amd_bus.c
b/arch/x86/pci/amd_bus.c
index bfa50e65ef6c380557d576681a8cf6cede4db8db..ae744b6a0785639185b633b84a5a37a9787c309b 100644
(file)
--- a/
arch/x86/pci/amd_bus.c
+++ b/
arch/x86/pci/amd_bus.c
@@
-126,7
+126,7
@@
static int __init early_root_info_init(void)
node = (reg >> 4) & 0x07;
link = (reg >> 8) & 0x03;
-
info =
alloc_pci_root_info(min_bus, max_bus, node, link);
+ alloc_pci_root_info(min_bus, max_bus, node, link);
}
/*