projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb117b
)
PCI: remove useless pcix_set_mmrbc() dev->bus check
author
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 20 Jun 2012 22:41:16 +0000
(16:41 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 20 Jun 2012 23:28:53 +0000
(17:28 -0600)
For a valid pci_dev, dev->bus != NULL always, so remove this
unnecessary test.
Found by Coverity (CID 101680).
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci.c
b/drivers/pci/pci.c
index b9e93cf1eb407db80380928dffa167991fafa8b4..7f1310e5853498af0d013fb88f078e4177845349 100644
(file)
--- a/
drivers/pci/pci.c
+++ b/
drivers/pci/pci.c
@@
-3395,8
+3395,7
@@
int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc)
o = (cmd & PCI_X_CMD_MAX_READ) >> 2;
if (o != v) {
- if (v > o && dev->bus &&
- (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_MMRBC))
+ if (v > o && (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_MMRBC))
return -EIO;
cmd &= ~PCI_X_CMD_MAX_READ;
This page took
0.026573 seconds
and
5
git commands to generate.